]> git.baikalelectronics.ru Git - kernel.git/commit
brcm80211: smac: remove redundant assignments from txpwrctrl_pwr_setup_nphy
authorArend van Spriel <arend@broadcom.com>
Thu, 9 Feb 2012 20:08:57 +0000 (21:08 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Feb 2012 19:48:50 +0000 (14:48 -0500)
commitfdb04e4af5e2924a84162a80bed6f56cffa49b7f
tree9f8a78867a31b10a97dcc15820ed90962427b480
parent89aac291a4d8002d0e80bade27aac517db8a1648
brcm80211: smac: remove redundant assignments from txpwrctrl_pwr_setup_nphy

The function wlc_phy_txpwrctrl_pwr_setup_nphy() does assign a local
variable target_pwr_qtrdbm in several code paths, but in the end all
code paths are coming to an assignment of that variable which does
override all previous. So those early and redundant assignments have
been removed.

Reported-by: Larry Finger <Larry.Finger@lwfinger.net>
Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com>
Reviewed-by: Alwin Beukers <alwin@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmsmac/phy/phy_n.c