Commit 7415952f authored by Wey-Yi Guy's avatar Wey-Yi Guy Committed by John W. Linville

iwlagn: check more error return code

In alive notify, we should check return code instead of assume everything ok
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 901069c7
...@@ -432,6 +432,7 @@ int iwlagn_alive_notify(struct iwl_priv *priv) ...@@ -432,6 +432,7 @@ int iwlagn_alive_notify(struct iwl_priv *priv)
unsigned long flags; unsigned long flags;
int i, chan; int i, chan;
u32 reg_val; u32 reg_val;
int ret;
spin_lock_irqsave(&priv->lock, flags); spin_lock_irqsave(&priv->lock, flags);
...@@ -527,9 +528,14 @@ int iwlagn_alive_notify(struct iwl_priv *priv) ...@@ -527,9 +528,14 @@ int iwlagn_alive_notify(struct iwl_priv *priv)
iwl_clear_bits_prph(priv, APMG_PCIDEV_STT_REG, iwl_clear_bits_prph(priv, APMG_PCIDEV_STT_REG,
APMG_PCIDEV_STT_VAL_L1_ACT_DIS); APMG_PCIDEV_STT_VAL_L1_ACT_DIS);
iwlagn_send_wimax_coex(priv); ret = iwlagn_send_wimax_coex(priv);
if (ret)
return ret;
ret = iwlagn_set_Xtal_calib(priv);
if (ret)
return ret;
iwlagn_set_Xtal_calib(priv);
return iwl_send_calib_results(priv); return iwl_send_calib_results(priv);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment