staging: wilc1000: fix NULL comparison style
authorChaehyun Lim <chaehyun.lim@gmail.com>
Fri, 2 Oct 2015 12:44:48 +0000 (21:44 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 08:42:39 +0000 (09:42 +0100)
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>
drivers/staging/wilc1000/host_interface.c

index c635b84c450c8584c84e876ff8117bc5297a96cc..65bd3250a5fa78c772c9e68239e73d6f56ab9e59 100644 (file)
@@ -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;
        }