2024-01-18 13:05:13

by Kalle Valo

[permalink] [raw]
Subject: Re: [v2] wifi: brcmsmac: phy: Remove unreachable code

Artem Chernyshev <[email protected]> wrote:

> wlc_phy_txpwr_srom_read_nphy() in wlc_phy_attach_nphy() can not
> return false, so it's impossible to get true value in this
> if-statement. Also change those functions return types to void
> since no one using it.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Signed-off-by: Artem Chernyshev <[email protected]>
> Reviewed-by: Jonas Gorski <[email protected]>

Patch applied to wireless-next.git, thanks.

47f0e32ffe4e wifi: brcmsmac: phy: Remove unreachable code

--
https://patchwork.kernel.org/project/linux-wireless/patch/[email protected]/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches