]> git.karo-electronics.de Git - linux-beck.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)
commit01343537e6da3398ecea205ff1d579e4dc226b93
tree9f8a78867a31b10a97dcc15820ed90962427b480
parent1570e53c14ff21ec5e23c1a7fe814c09aa950dbc
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