Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jim Cromie and committed by
Greg Kroah-Hartman
1ef9eaf2 a85990b3

+1 -1
+1 -1
kernel/params.c
··· 190 190 /* Chew leading spaces */ 191 191 args = skip_spaces(args); 192 192 193 - if (args && *args) 193 + if (*args) 194 194 pr_debug("doing %s, parsing ARGS: '%s'\n", doing, args); 195 195 196 196 while (*args) {