[PATCH 19/20] staging: wilc1000: fix NULL comparison in host_int_remove_wep_key
Chaehyun Lim
chaehyun.lim at gmail.com
Mon Oct 5 10:35:03 UTC 2015
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 at gmail.com>
---
drivers/staging/wilc1000/host_interface.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/wilc1000/host_interface.c b/drivers/staging/wilc1000/host_interface.c
index 6936bff..ade9be02 100644
--- a/drivers/staging/wilc1000/host_interface.c
+++ b/drivers/staging/wilc1000/host_interface.c
@@ -4296,7 +4296,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;
--
2.6.0
More information about the devel
mailing list