diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2011-03-27 17:19:57 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-04 16:20:01 -0400 |
commit | 324732848c42bf79988479ee1b4359e15f08154b (patch) | |
tree | c2835df869da35b84274242f3862ed5e171211be /drivers/net/wireless/rtlwifi/core.c | |
parent | 6d2bd916afe6950b50f750cd82bbb9c6ff58611f (diff) |
rtlwifi: Remove unused/unneeded variables
Remove some unused variables and correct spelling errors.
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
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 e4f4aee8f298..8fed3c687619 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 | } |