diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2012-05-03 13:57:37 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-04 20:24:22 -0400 |
commit | 1ef9eaf2bf8901e92bb931875a5621692c8a0b84 (patch) | |
tree | d6e58f7aaff7345b9eca2985547ad9ac094446ce /kernel/params.c | |
parent | a85990b3b126e4fa443f1cbc18250a92c144ac27 (diff) |
params.c: fix Smack complaint about parse_args
In commit 9fb48c744: "params: add 3rd arg to option handler callback
signature", the if-guard added to the pr_debug was overzealous; no
callers pass NULL, and existing code above and below the guard assumes
as much. Change the if-guard to match, and silence the Smack
complaint.
CC: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/params.c')
-rw-r--r-- | kernel/params.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/params.c b/kernel/params.c index b60e2c74b961..be78c904b564 100644 --- a/kernel/params.c +++ b/kernel/params.c | |||
@@ -190,7 +190,7 @@ int parse_args(const char *doing, | |||
190 | /* Chew leading spaces */ | 190 | /* Chew leading spaces */ |
191 | args = skip_spaces(args); | 191 | args = skip_spaces(args); |
192 | 192 | ||
193 | if (args && *args) | 193 | if (*args) |
194 | pr_debug("doing %s, parsing ARGS: '%s'\n", doing, args); | 194 | pr_debug("doing %s, parsing ARGS: '%s'\n", doing, args); |
195 | 195 | ||
196 | while (*args) { | 196 | while (*args) { |