mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 18:21:24 +02:00
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>
This commit is contained in:
parent
f8252d54c4
commit
efa140029a
|
|
@ -1339,11 +1339,8 @@ static signed int validate_recv_data_frame(struct adapter *adapter, union recv_f
|
|||
|
||||
}
|
||||
|
||||
if (ret == _FAIL) {
|
||||
if (ret == _FAIL || ret == RTW_RX_HANDLED)
|
||||
goto exit;
|
||||
} else if (ret == RTW_RX_HANDLED) {
|
||||
goto exit;
|
||||
}
|
||||
|
||||
|
||||
if (!psta) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user