]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: rtl8723bs: replace deeply nested if-else with switch-case
authorNikolay Kulikov <nikolayof23@gmail.com>
Mon, 23 Mar 2026 15:06:03 +0000 (18:06 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Mar 2026 08:31:17 +0000 (10:31 +0200)
commitc4587d059ee74b2c216a49451ca47b39fe2789f6
tree657fb83673f169b126aa8919beedf975970e6947
parent8c964b82a4e97ec7f25e17b803ee196009b38a57
staging: rtl8723bs: replace deeply nested if-else with switch-case

The main logic of the validate_recv_mgnt_frame() function is deeply
nested due to multiple if-else statements and additional block scope.
Fix this by replacing identical if-else with switch-case statements,
which will improve code readability and correct checkpatch.pl warnings
about line lengths.

Signed-off-by: Nikolay Kulikov <nikolayof23@gmail.com>
Link: https://patch.msgid.link/20260323150650.7168-2-nikolayof23@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_recv.c