diff options
Diffstat (limited to 'drivers/net/wireless/rtlwifi/core.c')
-rw-r--r-- | drivers/net/wireless/rtlwifi/core.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/rtlwifi/core.c b/drivers/net/wireless/rtlwifi/core.c index e4f4aee8f29..8fed3c68761 100644 --- a/drivers/net/wireless/rtlwifi/core.c +++ b/drivers/net/wireless/rtlwifi/core.c | |||
@@ -35,7 +35,7 @@ | |||
35 | /*mutex for start & stop is must here. */ | 35 | /*mutex for start & stop is must here. */ |
36 | static int rtl_op_start(struct ieee80211_hw *hw) | 36 | static int rtl_op_start(struct ieee80211_hw *hw) |
37 | { | 37 | { |
38 | int err = 0; | 38 | int err; |
39 | struct rtl_priv *rtlpriv = rtl_priv(hw); | 39 | struct rtl_priv *rtlpriv = rtl_priv(hw); |
40 | struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); | 40 | struct rtl_hal *rtlhal = rtl_hal(rtl_priv(hw)); |
41 | 41 | ||
@@ -45,10 +45,8 @@ static int rtl_op_start(struct ieee80211_hw *hw) | |||
45 | return 0; | 45 | return 0; |
46 | mutex_lock(&rtlpriv->locks.conf_mutex); | 46 | mutex_lock(&rtlpriv->locks.conf_mutex); |
47 | err = rtlpriv->intf_ops->adapter_start(hw); | 47 | err = rtlpriv->intf_ops->adapter_start(hw); |
48 | if (err) | 48 | if (!err) |
49 | goto out; | 49 | rtl_watch_dog_timer_callback((unsigned long)hw); |
50 | rtl_watch_dog_timer_callback((unsigned long)hw); | ||
51 | out: | ||
52 | mutex_unlock(&rtlpriv->locks.conf_mutex); | 50 | mutex_unlock(&rtlpriv->locks.conf_mutex); |
53 | return err; | 51 | return err; |
54 | } | 52 | } |