diff options
author | Wu Fengguang <fengguang.wu@intel.com> | 2008-12-17 03:52:31 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-12-19 15:23:38 -0500 |
commit | febf3370c63b4ea7fc1cedb9a73ac37e3cb21079 (patch) | |
tree | ac77df5fc8aafbd23c92016cc229b7216acce6b9 /drivers/net/wireless/iwlwifi/iwl-5000.c | |
parent | 95aa194ac4a8fee0aea64c9609e70211cd057ad2 (diff) |
iwlwifi: remove useless goto
The patch removes some useless goto in code cleanup.
Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-5000.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index 7f3a921a15c6..66d053d28a74 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -73,7 +73,6 @@ static const u16 iwl5000_default_queue_to_tx_fifo[] = { | |||
73 | /* FIXME: same implementation as 4965 */ | 73 | /* FIXME: same implementation as 4965 */ |
74 | static int iwl5000_apm_stop_master(struct iwl_priv *priv) | 74 | static int iwl5000_apm_stop_master(struct iwl_priv *priv) |
75 | { | 75 | { |
76 | int ret = 0; | ||
77 | unsigned long flags; | 76 | unsigned long flags; |
78 | 77 | ||
79 | spin_lock_irqsave(&priv->lock, flags); | 78 | spin_lock_irqsave(&priv->lock, flags); |
@@ -81,16 +80,13 @@ static int iwl5000_apm_stop_master(struct iwl_priv *priv) | |||
81 | /* set stop master bit */ | 80 | /* set stop master bit */ |
82 | iwl_set_bit(priv, CSR_RESET, CSR_RESET_REG_FLAG_STOP_MASTER); | 81 | iwl_set_bit(priv, CSR_RESET, CSR_RESET_REG_FLAG_STOP_MASTER); |
83 | 82 | ||
84 | ret = iwl_poll_direct_bit(priv, CSR_RESET, | 83 | iwl_poll_direct_bit(priv, CSR_RESET, |
85 | CSR_RESET_REG_FLAG_MASTER_DISABLED, 100); | 84 | CSR_RESET_REG_FLAG_MASTER_DISABLED, 100); |
86 | if (ret < 0) | ||
87 | goto out; | ||
88 | 85 | ||
89 | out: | ||
90 | spin_unlock_irqrestore(&priv->lock, flags); | 86 | spin_unlock_irqrestore(&priv->lock, flags); |
91 | IWL_DEBUG_INFO("stop master\n"); | 87 | IWL_DEBUG_INFO("stop master\n"); |
92 | 88 | ||
93 | return ret; | 89 | return 0; |
94 | } | 90 | } |
95 | 91 | ||
96 | 92 | ||