]> git.baikalelectronics.ru Git - kernel.git/commit
params.c: fix Smack complaint about parse_args
authorJim Cromie <jim.cromie@gmail.com>
Thu, 3 May 2012 17:57:37 +0000 (11:57 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 May 2012 00:24:22 +0000 (17:24 -0700)
commit9608daf15d1fdb44433df39e385988e517712692
treed6e58f7aaff7345b9eca2985547ad9ac094446ce
parent24ff0bb93231366712bd64292bba72ebd9a7566c
params.c: fix Smack complaint about parse_args

In commit 082f2742f: "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>
kernel/params.c