]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
staging: rtl8723bs: replace NULL comparison with NOT operator
authorMiguel Cyrineu Vale <miguelcvalealt@gmail.com>
Mon, 27 Apr 2026 19:37:59 +0000 (16:37 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 May 2026 14:47:58 +0000 (16:47 +0200)
Fix checkpatch error "Comparison to NULL could be written "!psta"" in
ioctl_cfg80211.c:2432

Signed-off-by: Miguel Cyrineu Vale <miguelcvalealt@gmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260427193759.71642-1-miguelcvalealt@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c

index a55c6808755e4d02df49077bdc19a36ece7a0457..1a2cce218f40a0b209277eadac896d8139137e91 100644 (file)
@@ -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;
        }