summaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorAndrey Ryabinin <a.ryabinin@samsung.com>2014-01-27 20:06:57 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2014-01-28 00:02:39 -0500
commitd9e133e6f05fbb39e2ecf7bc1edca299729a8595 (patch)
tree2a1bf47cafc1b162c88ad0f3f2268149b139eeac /lib/dynamic_debug.c
parentf5b258550f3c4e74901fcb71daf3aea454d694ae (diff)
dynamic_debug: remove wrong error message
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>
Diffstat (limited to 'lib/dynamic_debug.c')
-rw-r--r--lib/dynamic_debug.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/dynamic_debug.c b/lib/dynamic_debug.c
index 600ac57e2777..f959c39cc007 100644
--- a/lib/dynamic_debug.c
+++ b/lib/dynamic_debug.c
@@ -348,10 +348,8 @@ static int ddebug_parse_query(char *words[], int nwords,
348 } 348 }
349 if (last) 349 if (last)
350 *last++ = '\0'; 350 *last++ = '\0';
351 if (parse_lineno(first, &query->first_lineno) < 0) { 351 if (parse_lineno(first, &query->first_lineno) < 0)
352 pr_err("line-number is <0\n");
353 return -EINVAL; 352 return -EINVAL;
354 }
355 if (last) { 353 if (last) {
356 /* range <first>-<last> */ 354 /* range <first>-<last> */
357 if (parse_lineno(last, &query->last_lineno) 355 if (parse_lineno(last, &query->last_lineno)