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:
Giacomo Di Clerico 2026-03-17 11:07:23 +01:00 committed by Greg Kroah-Hartman
parent f8252d54c4
commit efa140029a

View File

@ -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) {