]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: rtl8723bs: simplify return checks in validate_recv_data_frame()
authorGiacomo Di Clerico <giacomodiclerico@gmail.com>
Tue, 17 Mar 2026 10:07:23 +0000 (11:07 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Mar 2026 15:56:58 +0000 (16:56 +0100)
commitefa140029a982c2194f26b3edad44aab4f542d75
tree7320e58264f76c33ff09c463ede194e410f94cca
parentf8252d54c4c1789b4c827216b3c338bc3197cfcf
staging: rtl8723bs: simplify return checks in validate_recv_data_frame()

Combine the return value checks for _FAIL and RTW_RX_HANDLED into a
single logical OR statement and remove unnecessary braces. This improves
code readability and resolves the following checkpatch.pl warning:
"WARNING: braces {} are not necessary for any arm of this statement"

Signed-off-by: Giacomo Di Clerico <giacomodiclerico@gmail.com>
Link: https://patch.msgid.link/20260317100723.72476-1-giacomodiclerico@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_recv.c