]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
staging: rtl8723bs: use guard clause for stainfo check
authorLin YuChen <starpt.official@gmail.com>
Thu, 19 Mar 2026 12:07:37 +0000 (20:07 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Mar 2026 08:30:27 +0000 (10:30 +0200)
commite23ad15700284b63ab5d8ae1370e93f7c1723863
tree86add43899d38542aa393e26b7ccbde71adbd78a
parentd359ab14db75ea485b3c0788f85eb9cebacd4add
staging: rtl8723bs: use guard clause for stainfo check

Continue the refactor of rtw_aes_decrypt() by introducing a guard
clause for the stainfo check. This allows the subsequent multicast
and unicast decryption logic to be moved one indentation level to
the left, further improving code readability.

Signed-off-by: Lin YuChen <starpt.official@gmail.com>
Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/20260319120737.29692-3-starpt.official@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_security.c