Re: [PATCH] staging: rtl8723bs: reorder conditions to avoid else branch
From: Dan Carpenter
Date: Thu Aug 20 2026 - 14:58:09 EST
On Fri, Aug 21, 2026 at 01:26:01AM +0900, myeonghyeon.park wrote:
> Fix the checkpatch.pl warning:
>
> "WARNING: else is not generally useful after a break or return"
>
> in core/rtw_recv.c.
>
> Return early when the SN_EQUAL() condition is met and break when
> SN_LESS() condition is false to eliminate the unnecessary else branch.
>
Just ignore checkpatch when it is wrong.
regards,
dan carpenter