diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2013-09-25 12:57:48 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-12-04 10:56:07 -0800 |
commit | aaa3a8c7685d7ce2b779e89f25109e27e0c7c2a7 (patch) | |
tree | 777b996792db8b64644ed53774ff3fa47f8ba93d /drivers/net/wireless/rtlwifi/rtl8188ee | |
parent | 7135a8a100fb1bc8d15f90a31e72faccdb4d7118 (diff) | |
download | lwn-aaa3a8c7685d7ce2b779e89f25109e27e0c7c2a7.tar.gz lwn-aaa3a8c7685d7ce2b779e89f25109e27e0c7c2a7.zip |
rtlwifi: rtl8188ee: Fix smatch warning in rtl8188ee/hw.c
commit dab3df5e88b979f8d09860f873ccfaa7a55758d2 upstream.
Smatch lists the following:
CHECK drivers/net/wireless/rtlwifi/rtl8188ee/hw.c
drivers/net/wireless/rtlwifi/rtl8188ee/hw.c:149 _rtl88ee_set_fw_clock_on() info: ignoring unreachable code.
drivers/net/wireless/rtlwifi/rtl8188ee/hw.c:149 _rtl88ee_set_fw_clock_on() info: ignoring unreachable code.
This info message is the result of a real error due to a missing break statement
in a "while (1)" loop.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8188ee')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8188ee/hw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8188ee/hw.c b/drivers/net/wireless/rtlwifi/rtl8188ee/hw.c index b68cae3024fc..e06971be7df7 100644 --- a/drivers/net/wireless/rtlwifi/rtl8188ee/hw.c +++ b/drivers/net/wireless/rtlwifi/rtl8188ee/hw.c @@ -143,6 +143,7 @@ static void _rtl88ee_set_fw_clock_on(struct ieee80211_hw *hw, } else { rtlhal->fw_clk_change_in_progress = false; spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); + break; } } |