summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChaehyun Lim <chaehyun.lim@gmail.com>2015-10-05 13:35:03 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-10-08 12:58:33 +0300
commit4929affee3a71243154873bb55763bb923e6bba9 (patch)
tree3e9b5d14aeb44b0c6d6716f52e9bde5c1d9cbe11
parent0c694d829c5dfaf33dfcc47c6c2559f238de5978 (diff)
downloadlinux-4929affee3a71243154873bb55763bb923e6bba9.tar.xz
staging: wilc1000: fix NULL comparison in host_int_remove_wep_key
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>
-rw-r--r--drivers/staging/wilc1000/host_interface.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 593d41aae18a..917cdcc16fde 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -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;