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

From: Ping-Ke Shih

Date: Thu Jul 30 2026 - 01:37:10 EST


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>

2 patch(es) applied to rtw-next branch of rtw.git, thanks.

c13ab5bed716 wifi: rtlwifi: rtl8821ae: remove conditional return with no effect in _rtl8821ae_llt_write()
bbc18041ad5f wifi: rtw89: remove conditional return with no effect in sys_init_*()

---
https://github.com/pkshih/rtw.git