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>
This commit is contained in:
Michael Huang 2026-01-24 15:15:57 -08:00 committed by Greg Kroah-Hartman
parent 5747a86451
commit 6007fd4603

View File

@ -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;