dynamic_debug: remove wrong error message
authorAndrey Ryabinin <a.ryabinin@samsung.com>
Tue, 28 Jan 2014 01:06:57 +0000 (17:06 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 28 Jan 2014 05:02:39 +0000 (21:02 -0800)
parse_lineno() returns either negative error code or zero.  We don't
need to print something here because if parse_lineno fails it will print
error message.

Signed-off-by: Andrey Ryabinin <a.ryabinin@samsung.com>
Cc: Jason Baron <jbaron@akamai.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
lib/dynamic_debug.c

index 600ac57e27777f429b77279d93cb9a483f1fbd15..f959c39cc0079ee14cf226677b4c5063c3236427 100644 (file)
@@ -348,10 +348,8 @@ static int ddebug_parse_query(char *words[], int nwords,
                        }
                        if (last)
                                *last++ = '\0';
-                       if (parse_lineno(first, &query->first_lineno) < 0) {
-                               pr_err("line-number is <0\n");
+                       if (parse_lineno(first, &query->first_lineno) < 0)
                                return -EINVAL;
-                       }
                        if (last) {
                                /* range <first>-<last> */
                                if (parse_lineno(last, &query->last_lineno)