staging: rtl8723bs: cleanup NULL check before vfree
authorAmarjargal Gundjalam <amarjargal16@gmail.com>
Mon, 26 Oct 2020 14:15:10 +0000 (22:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2020 11:23:10 +0000 (12:23 +0100)
commit90855921ac92834daa809a5ce97a72de464260a7
treee898cd9a43a9f58770e8ffd8fde988ee0171f542
parent9ab476ba001ead1f64430a3a61c9466ac0fa91ed
staging: rtl8723bs: cleanup NULL check before vfree

Remove redundant NULL pointer check before vfree() since vfree() does
its own NULL check. Reported by coccinelle.

Signed-off-by: Amarjargal Gundjalam <amarjargal16@gmail.com>
Link: https://lore.kernel.org/r/20201026141510.GA21791@AJ-T14
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme.c
drivers/staging/rtl8723bs/core/rtw_recv.c
drivers/staging/rtl8723bs/core/rtw_sta_mgt.c
drivers/staging/rtl8723bs/core/rtw_xmit.c