diff options
author | Izabela Bakollari <izabela.bakollari@gmail.com> | 2020-10-27 00:23:10 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-10-27 13:16:23 +0100 |
commit | 34557e233cf86cc3d7a0ec1519b2add434d950f5 (patch) | |
tree | 0aed1daf2620a2a79f3dbc80c317fc2ed5227f18 /drivers/staging/rtl8723bs/os_dep/recv_linux.c | |
parent | fe50b1f832100909466db0bf68e3c3643f575120 (diff) | |
download | linux-stable-34557e233cf86cc3d7a0ec1519b2add434d950f5.tar.gz linux-stable-34557e233cf86cc3d7a0ec1519b2add434d950f5.tar.bz2 linux-stable-34557e233cf86cc3d7a0ec1519b2add434d950f5.zip |
staging: rtl8723bs: Rewrite comparison to NULL
Rewrite comparison to NULL by modifying (p != NULL) to (p).
Issue reported by checkpatch.
Signed-off-by: Izabela Bakollari <izabela.bakollari@gmail.com>
Link: https://lore.kernel.org/r/20201026232310.48128-1-izabela.bakollari@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs/os_dep/recv_linux.c')
-rw-r--r-- | drivers/staging/rtl8723bs/os_dep/recv_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/os_dep/recv_linux.c b/drivers/staging/rtl8723bs/os_dep/recv_linux.c index 900ff3a3b014..4a1d5293a327 100644 --- a/drivers/staging/rtl8723bs/os_dep/recv_linux.c +++ b/drivers/staging/rtl8723bs/os_dep/recv_linux.c @@ -124,7 +124,7 @@ void rtw_os_recv_indicate_pkt(struct adapter *padapter, _pkt *pkt, struct rx_pkt _rtw_xmit_entry(pkt, pnetdev); - if (bmcast && (pskb2 != NULL)) { + if (bmcast && pskb2) { pkt = pskb2; DBG_COUNTER(padapter->rx_logs.os_indicate_ap_mcast); } else { |