]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: rtl8192cu: Fix duplicate if test
authorLarry Finger <Larry.Finger@lwfinger.net>
Sat, 9 Jul 2011 18:15:58 +0000 (13:15 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Jul 2011 19:02:20 +0000 (15:02 -0400)
commit9e19f29b5c83526ac485d78a8a7e5fdf0c4297bc
tree74890d483c7bf70035dee66355c1b8d2f6282c5d
parent7780d0b798e4f225a1890560f96b898955d23e8d
rtlwifi: rtl8192cu: Fix duplicate if test

A typo causes routine rtl92cu_phy_rf6052_set_cck_txpower() to test the
same condition twice. The problem was found using cppcheck-1.49, and the
proper fix was verified against the pre-mac80211 version of the code.

Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: stable <stable@kernel.org> [back to 2.6.39]
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192cu/rf.c