]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: rtl8723bs: simplify NULL pointer comparisons in rtw_recv.h
authorAbhai Kollara <abhai@protonmail.com>
Thu, 30 Apr 2026 20:12:06 +0000 (20:12 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 May 2026 14:49:14 +0000 (16:49 +0200)
commit1dd3d7febbba0c7c9162859fc5af63f982ec1fe2
tree831612f4f3a5e86a4fa9d107a90cdacb72592a18
parent617a446d0e80ffe41189cc90ae462b4e9e956b8b
staging: rtl8723bs: simplify NULL pointer comparisons in rtw_recv.h

Fix checkpatch.pl warnings regarding explicit comparisons to NULL.
The kernel coding style prefers the shorter if (!ptr) idiom over
if (ptr == NULL). Clean up the inline functions in rtw_recv.h to
match this standard.

Signed-off-by: Abhai Kollara <abhai@protonmail.com>
Reviewed-by: Luka Gejak <luka.gejak@linux.dev>
Link: https://patch.msgid.link/20260430201158.2807823-1-abhai@protonmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/include/rtw_recv.h