staging: wilc1000: fix NULL comparison in host_int_remove_wep_key
authorChaehyun Lim <chaehyun.lim@gmail.com>
Mon, 5 Oct 2015 10:35:03 +0000 (19:35 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Oct 2015 09:58:33 +0000 (10:58 +0100)
This patch fixes NULL comparison style in host_int_remove_wep_key found
by checkpatch.

CHECK: Comparison to NULL could be written "!wfi_drv"
FILE: drivers/staging/wilc1000/host_interface.c:4300

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 593d41aae18a6527506a1eab3cab57f698e53ecc..917cdcc16fdefb5c2091f5debbe982831f72dd0f 100644 (file)
@@ -4193,7 +4193,7 @@ int host_int_remove_wep_key(tstrWILC_WFIDrv *wfi_drv, u8 index)
        int result = 0;
        struct host_if_msg msg;
 
-       if (wfi_drv == NULL) {
+       if (!wfi_drv) {
                result = -EFAULT;
                PRINT_ER("Failed to send setup multicast config packet\n");
                return result;