From: Miguel Cyrineu Vale Date: Mon, 27 Apr 2026 19:37:59 +0000 (-0300) Subject: staging: rtl8723bs: replace NULL comparison with NOT operator X-Git-Tag: v7.2-rc1~66^2~111 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b07c48f8e944c1fdc1630a88f07e285018e562f;p=thirdparty%2Fkernel%2Fstable.git staging: rtl8723bs: replace NULL comparison with NOT operator Fix checkpatch error "Comparison to NULL could be written "!psta"" in ioctl_cfg80211.c:2432 Signed-off-by: Miguel Cyrineu Vale Reviewed-by: Luka Gejak Link: https://patch.msgid.link/20260427193759.71642-1-miguelcvalealt@gmail.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c index a55c6808755e4..1a2cce218f40a 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c @@ -2429,7 +2429,7 @@ static int cfg80211_rtw_dump_station(struct wiphy *wiphy, spin_lock_bh(&pstapriv->asoc_list_lock); psta = rtw_sta_info_get_by_idx(idx, pstapriv); spin_unlock_bh(&pstapriv->asoc_list_lock); - if (psta == NULL) { + if (!psta) { ret = -ENOENT; goto exit; }