staging: rtl8723bs: remove meaningless pstat->passoc_req check in OnAssocReq()
authorLongji Guo <guolongji@uniontech.com>
Wed, 29 Sep 2021 11:06:13 +0000 (19:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Oct 2021 10:27:50 +0000 (12:27 +0200)
commit42bdb41d2ef84311b6699432273be6565001128b
treef383f2f738c02663088c2143de35063a21698c1e
parent6649335e1f0c3482a3a86840afdb2448ceb6bff1
staging: rtl8723bs: remove meaningless pstat->passoc_req check in OnAssocReq()

kfree(NULL) is safe and the check 'if (pstat->passoc_req)' before kfree
is not necessary.

Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Longji Guo <guolongji@uniontech.com>
Link: https://lore.kernel.org/r/20210929110613.29979-1-guolongji@uniontech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c