mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
drivers: rtl8723bs: rewrite comparison to null
fix following post-commit hook checkpatch warnings: CHECK: Comparison to NULL could be written "!psta" 97: FILE: drivers/staging/rtl8723bs/core/rtw_ap.c:2115: + if (psta == NULL) Signed-off-by: Fabio Aiuto <fabioaiuto83@gmail.com> Link: https://lore.kernel.org/r/0c6d53c851d1b07eb0183108e0bad7b4f273f04b.1617802415.git.fabioaiuto83@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
21e161c3ce
commit
394ceaa2b3
|
|
@ -2103,7 +2103,7 @@ void rtw_ap_restore_network(struct adapter *padapter)
|
|||
for (i = 0; i < chk_alive_num; i++) {
|
||||
psta = rtw_get_stainfo_by_offset(pstapriv, chk_alive_list[i]);
|
||||
|
||||
if (psta == NULL)
|
||||
if (!psta)
|
||||
continue;
|
||||
|
||||
if (psta->state & _FW_LINKED) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user