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>
}
- if (ret == _FAIL) {
+ if (ret == _FAIL || ret == RTW_RX_HANDLED)
goto exit;
- } else if (ret == RTW_RX_HANDLED) {
- goto exit;
- }
if (!psta) {