]> 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)
commit536b305203c13f69894688438d2a120d756abd68
tree9f8a78867a31b10a97dcc15820ed90962427b480
parent82beb79a1ec838784bf840d6c48f7ce8ac1a6070
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