aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/net/wireless/hostap/hostap_cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/hostap/hostap_cs.c b/drivers/net/wireless/hostap/hostap_cs.c
index 491cf49042c6..e1f1eb8e484a 100644
--- a/drivers/net/wireless/hostap/hostap_cs.c
+++ b/drivers/net/wireless/hostap/hostap_cs.c
@@ -212,7 +212,7 @@ static int prism2_event(event_t event, int priority,
212static int prism2_pccard_card_present(local_info_t *local) 212static int prism2_pccard_card_present(local_info_t *local)
213{ 213{
214 struct hostap_cs_priv *hw_priv = local->hw_priv; 214 struct hostap_cs_priv *hw_priv = local->hw_priv;
215 if (hw_priv->link != NULL && 215 if (hw_priv != NULL && hw_priv->link != NULL &&
216 ((hw_priv->link->state & (DEV_PRESENT | DEV_CONFIG)) == 216 ((hw_priv->link->state & (DEV_PRESENT | DEV_CONFIG)) ==
217 (DEV_PRESENT | DEV_CONFIG))) 217 (DEV_PRESENT | DEV_CONFIG)))
218 return 1; 218 return 1;