Skip to content

Commit d9e133e

Browse files
aryabinintorvalds
authored andcommitted
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>
1 parent f5b2585 commit d9e133e

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎lib/dynamic_debug.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,8 @@ static int ddebug_parse_query(char *words[], int nwords,
348348
}
349349
if (last)
350350
*last++ = '\0';
351-
if (parse_lineno(first, &query->first_lineno) < 0) {
352-
pr_err("line-number is <0\n");
351+
if (parse_lineno(first, &query->first_lineno) < 0)
353352
return -EINVAL;
354-
}
355353
if (last) {
356354
/* range <first>-<last> */
357355
if (parse_lineno(last, &query->last_lineno)

0 commit comments

Comments
 (0)