Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9e133e6 authored by Andrey Ryabinin's avatar Andrey Ryabinin Committed by Linus Torvalds
Browse files

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: default avatarAndrey Ryabinin <a.ryabinin@samsung.com>
Cc: Jason Baron <jbaron@akamai.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f5b25855
Loading
Loading
Loading
Loading
+1 −3
Original line number Original line Diff line number Diff line
@@ -348,10 +348,8 @@ static int ddebug_parse_query(char *words[], int nwords,
			}
			}
			if (last)
			if (last)
				*last++ = '\0';
				*last++ = '\0';
			if (parse_lineno(first, &query->first_lineno) < 0) {
			if (parse_lineno(first, &query->first_lineno) < 0)
				pr_err("line-number is <0\n");
				return -EINVAL;
				return -EINVAL;
			}
			if (last) {
			if (last) {
				/* range <first>-<last> */
				/* range <first>-<last> */
				if (parse_lineno(last, &query->last_lineno)
				if (parse_lineno(last, &query->last_lineno)