aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2011-04-13 06:14:52 -0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2011-04-22 13:21:23 -0400
commit4cd2bf76a40a148bc92f4a3d17bc7f94277b0410 (patch)
tree5748b305933dff85a98d1f356da44d6f94da4272 /drivers/net/wireless/iwlwifi/iwl-agn-lib.c
parentdbf28e21ca391110e90ccad05dda79d2e2f60e0e (diff)
iwlagn: remove hw_ready variable
This variable is only ever checked right after the function that sets it, but the same function will also return the status, so we can pass it through instead of checking hw_ready later. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-agn-lib.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-agn-lib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
index 8216e5ca918b..e202a40cbcb7 100644
--- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
+++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c
@@ -2306,8 +2306,7 @@ int iwlagn_start_device(struct iwl_priv *priv)
2306{ 2306{
2307 int ret; 2307 int ret;
2308 2308
2309 iwl_prepare_card_hw(priv); 2309 if (iwl_prepare_card_hw(priv)) {
2310 if (!priv->hw_ready) {
2311 IWL_WARN(priv, "Exit HW not ready\n"); 2310 IWL_WARN(priv, "Exit HW not ready\n");
2312 return -EIO; 2311 return -EIO;
2313 } 2312 }