]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: rtl8723bs: use !ptr instead of ptr == NULL
authorMichael Huang <tehsiu.huang@gmail.com>
Sat, 24 Jan 2026 23:15:57 +0000 (15:15 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jan 2026 14:46:34 +0000 (15:46 +0100)
commit6007fd46039d56a67024f92fffa262418509ce73
tree204d3a7aeb23dcdb18a39426edca057a19bd6f94
parent5747a86451836bbcd70b6ab61d7272d013690ff8
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>
drivers/staging/rtl8723bs/core/rtw_mlme_ext.c