projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6d3346
)
staging: wilc1000: fix NULL comparison style
author
Chaehyun Lim
<
[email protected]
>
Fri, 2 Oct 2015 12:44:48 +0000
(21:44 +0900)
committer
Greg Kroah-Hartman
<
[email protected]
>
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 <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/wilc1000/host_interface.c
patch
|
blob
|
history
diff --git
a/drivers/staging/wilc1000/host_interface.c
b/drivers/staging/wilc1000/host_interface.c
index c635b84c450c8584c84e876ff8117bc5297a96cc..65bd3250a5fa78c772c9e68239e73d6f56ab9e59 100644
(file)
--- 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;
}