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:
258e7af
)
staging: r8723au: replace NULL and zero comparison tests with ! operator
author
Alison Schofield
<
[email protected]
>
Fri, 16 Oct 2015 18:46:29 +0000
(11:46 -0700)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sat, 17 Oct 2015 06:06:38 +0000
(23:06 -0700)
Replace explicit NULL comparison and zero comparison test with ! operator
to simplify code.
Signed-off-by: Alison Schofield <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/rtl8723au/core/rtw_ap.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rtl8723au/core/rtw_ap.c
b/drivers/staging/rtl8723au/core/rtw_ap.c
index a7c8b7315122378de0d12bdc9ad5ba6ffdcc9ebd..a0b68451abf078fd6f84596d9a7a1036b57ed403 100644
(file)
--- a/
drivers/staging/rtl8723au/core/rtw_ap.c
+++ b/
drivers/staging/rtl8723au/core/rtw_ap.c
@@
-919,8
+919,8
@@
int rtw_check_beacon_data23a(struct rtw_adapter *padapter,
break;
}
- if (
(p == NULL) || (ie_len == 0)
)
-
break;
+ if (
!p || !ie_len
)
+ break;
}
/* wmm */