]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
wifi: brcmsmac: phy: Remove unreachable error handling code
authorIngyu Jang <ingyujang25@korea.ac.kr>
Sat, 31 Jan 2026 17:23:55 +0000 (02:23 +0900)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 3 Feb 2026 12:11:12 +0000 (13:11 +0100)
commit9825fa8f49905275acef6c8e7fcd017d04616311
tree63c362643f462a8a4776a09a9cce2c2010d6c71b
parent19dd0cc36a52d0d121d7854cbb9b00d6d4dcad0a
wifi: brcmsmac: phy: Remove unreachable error handling code

wlc_phy_txpwr_srom_read_lcnphy() in wlc_phy_attach_lcnphy() always
returns true, making the error handling code unreachable. Change the
function's return type to void and remove the dead code, similar to
the cleanup done for wlc_phy_txpwr_srom_read_nphy() in commit
47f0e32ffe4e ("wifi: brcmsmac: phy: Remove unreachable code").

Signed-off-by: Ingyu Jang <ingyujang25@korea.ac.kr>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Link: https://patch.msgid.link/20260131172355.3367673-1-ingyujang25@korea.ac.kr
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_lcn.c