staging: rtl8821ae: Fix potential infinite loop

Smatch reports the following:
drivers/staging/rtl8821ae/rtl8821ae/hw.c:153 _rtl8821ae_set_fw_clock_on() info: ignoring unreachable code.

Upon investigation, the code in this region has the capability of creating
an infinite loop.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Larry Finger 2014-02-12 17:10:28 -06:00 committed by Greg Kroah-Hartman
parent 9f999462c3
commit c3eaaf8b5b
1 changed files with 1 additions and 0 deletions

View File

@ -147,6 +147,7 @@ static void _rtl8821ae_set_fw_clock_on(struct ieee80211_hw *hw,
} else { } else {
rtlhal->bfw_clk_change_in_progress = false; rtlhal->bfw_clk_change_in_progress = false;
spin_unlock_bh(&rtlpriv->locks.fw_ps_lock); spin_unlock_bh(&rtlpriv->locks.fw_ps_lock);
break;
} }
} }