summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Huang <tehsiu.huang@gmail.com>2026-01-25 02:15:57 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-27 17:46:34 +0300
commit6007fd46039d56a67024f92fffa262418509ce73 (patch)
tree204d3a7aeb23dcdb18a39426edca057a19bd6f94
parent5747a86451836bbcd70b6ab61d7272d013690ff8 (diff)
downloadlinux-6007fd46039d56a67024f92fffa262418509ce73.tar.xz
staging: rtl8723bs: use !ptr instead of ptr == NULL
Simplify pointer null checks by using the "!ptr" convention instead of the more verbose "ptr == NULL" comparison. Signed-off-by: Michael Huang <tehsiu.huang@gmail.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://patch.msgid.link/20260124231557.18189-8-tehsiu.huang@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8723bs/core/rtw_mlme_ext.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
index 4ba4f85be02d..884fcce50d9c 100644
--- a/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8723bs/core/rtw_mlme_ext.c
@@ -5994,8 +5994,7 @@ u8 run_in_thread_hdl(struct adapter *padapter, u8 *pbuf)
{
struct RunInThread_param *p;
-
- if (pbuf == NULL)
+ if (!pbuf)
return H2C_PARAMETERS_ERROR;
p = (struct RunInThread_param *)pbuf;