public inbox for linux-staging@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8723bs: replace NULL comparison with NOT operator
@ 2026-04-23 18:42 mgcvale
  2026-04-24 13:39 ` Luka Gejak
  0 siblings, 1 reply; 2+ messages in thread
From: mgcvale @ 2026-04-23 18:42 UTC (permalink / raw)
  To: linux-staging, linux-kernel, gregkh; +Cc: ~lkcamp/patches, koike, mgcvale

Fix checkpatch error "Comparison to NULL could be written
"!psta"" in ioctl_cfg80211.c:2432

Signed-off-by: mgcvale <miguelcvalealt@gmail.com>

---
Hey, this is my first patch, so I appreciate any feedback.
Thanks!
---
 drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
index fd3bae31b0ed..8ae3adecafd9 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;
 	}
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-04-24 13:39 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-23 18:42 [PATCH] staging: rtl8723bs: replace NULL comparison with NOT operator mgcvale
2026-04-24 13:39 ` Luka Gejak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox