mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
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:
parent
5747a86451
commit
6007fd4603
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user