diff options
author | Chaehyun Lim <chaehyun.lim@gmail.com> | 2015-10-02 14:44:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-04 10:42:39 +0200 |
commit | 3565ded9f220e86c9560f1cbaed2549edea8e7a3 (patch) | |
tree | b196bf642c69e7763ec718dfe7f6c03686082ba6 | |
parent | staging: wilc1000: fix return type of host_int_set_mac_chnl_num (diff) | |
download | linux-3565ded9f220e86c9560f1cbaed2549edea8e7a3.tar.xz linux-3565ded9f220e86c9560f1cbaed2549edea8e7a3.zip |
staging: wilc1000: fix NULL comparison style
This patch changes NULL comparison style to use ! operator found by
checkpatch.pl
CHECK: Comparison to NULL could be written "!pstrWFIDrv"
drivers/staging/wilc1000/host_interface.c:5324:
Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/staging/wilc1000/host_interface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c index c635b84c450c..65bd3250a5fa 100644 --- a/drivers/staging/wilc1000/host_interface.c +++ b/drivers/staging/wilc1000/host_interface.c @@ -5321,7 +5321,7 @@ int host_int_set_mac_chnl_num(tstrWILC_WFIDrv *hWFIDrv, u8 u8ChNum) tstrWILC_WFIDrv *pstrWFIDrv = (tstrWILC_WFIDrv *)hWFIDrv; struct host_if_msg msg; - if (pstrWFIDrv == NULL) { + if (!pstrWFIDrv) { PRINT_ER("driver is null\n"); return -EFAULT; } |