From: Chaehyun Lim Date: Fri, 2 Oct 2015 12:44:48 +0000 (+0900) Subject: staging: wilc1000: fix NULL comparison style X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3565ded9f220e86c9560f1cbaed2549edea8e7a3;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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; }