]> git.baikalelectronics.ru Git - kernel.git/commit
rtlwifi: rtl8192cu: Fix duplicate if test
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 18 Jun 2013 18:25:05 +0000 (13:25 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 19 Jun 2013 19:28:20 +0000 (15:28 -0400)
commit9dedf75e7de5584687e51a2ec755ad0f357d016e
tree9d0f70a6807a3332a2d1fd608868e43bf98fd131
parent82958e955bb1b9123fb61975e52b5f9174c9f662
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.

This patch was originally included as commit 9e19f29, but was accidentally
reverted in a later patch.

Reported-by: David Binderman <dcb314@hotmail.com> [original report]
Reported-by: Andrea Morello <andrea.merello@gmail.com> [report of accidental reversion]
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: stable <stable@vger.kernel.org> [back to 2.6.39]
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192cu/rf.c