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:
1c21a34
)
staging: rtl8723bs: core: rtw_cmd: drop unneeded null test
author
Julia Lawall
<
[email protected]
>
Sat, 8 Apr 2017 17:14:08 +0000
(19:14 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Sun, 9 Apr 2017 07:29:29 +0000
(09:29 +0200)
kfree returns immediately on NULL so the tests are not needed.
Generated by: scripts/coccinelle/free/ifnullfree.cocci
CC: Hans de Goede <
[email protected]
>
Signed-off-by: Julia Lawall <
[email protected]
>
Signed-off-by: Fengguang Wu <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/rtl8723bs/core/rtw_ap.c
patch
|
blob
|
history
diff --git
a/drivers/staging/rtl8723bs/core/rtw_ap.c
b/drivers/staging/rtl8723bs/core/rtw_ap.c
index 68b750275dffc219ff0bf383ca4e8bb70803f377..d3007c1c45e3723fe0678cdeb5c50857ee5c6bcd 100644
(file)
--- a/
drivers/staging/rtl8723bs/core/rtw_ap.c
+++ b/
drivers/staging/rtl8723bs/core/rtw_ap.c
@@
-1855,8
+1855,7
@@
static void update_bcn_wps_ie(struct adapter *padapter)
pnetwork->IELength = wps_offset + (wps_ielen+2) + remainder_ielen;
}
- if (pbackup_remainder_ie)
- kfree(pbackup_remainder_ie);
+ kfree(pbackup_remainder_ie);
/* deal with the case without set_tx_beacon_cmd() in update_beacon() */
#if defined(CONFIG_INTERRUPT_BASED_TXBCN)