RE: [PATCH rtw-next v2 1/2] wifi: rtlwifi: rtl8821ae: remove conditional return with no effect

From: Ping-Ke Shih

Date: Sun Jul 26 2026 - 22:12:14 EST



Ping-Ke Shih <pkshih@xxxxxxxxxxx> wrote:
> Sang-Heon Jeon <ekffu200098@xxxxxxxxx> wrote:
> > Both branches of the check return the same value, so the check has
> > no effect. Remove it and return the value directly.
> >
> > This is the result of running the Coccinelle script from
> > scripts/coccinelle/misc/cond_return_no_effect.cocci.
> >
> > Signed-off-by: Sang-Heon Jeon <ekffu200098@xxxxxxxxx>
>
> Acked-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
>

For the record, I'd make subject more specific:

wifi: rtlwifi: rtl8821ae: remove conditional return with no effect in _rtl8821ae_llt_write()