Skip to content

Commit 1ef9eaf

Browse files
jimcgregkh
authored andcommitted
params.c: fix Smack complaint about parse_args
In commit 9fb48c7: "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 <[email protected]> Signed-off-by: Jim Cromie <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent a85990b commit 1ef9eaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/params.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ int parse_args(const char *doing,
190190
/* Chew leading spaces */
191191
args = skip_spaces(args);
192192

193-
if (args && *args)
193+
if (*args)
194194
pr_debug("doing %s, parsing ARGS: '%s'\n", doing, args);
195195

196196
while (*args) {

0 commit comments

Comments
 (0)