summaryrefslogtreecommitdiffstats
path: root/sys/net80211/ieee80211.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-02-19 04:34:22 +0000
committersam <sam@FreeBSD.org>2009-02-19 04:34:22 +0000
commit396490ec3e14b502b0a765e8d5d42281c666c2cf (patch)
tree65ed71b3a24557a35c53d7d591e2dc0cfb8d4d40 /sys/net80211/ieee80211.c
parent8f46eec09092317db7590d5595fb47dec500f9d3 (diff)
downloadFreeBSD-src-396490ec3e14b502b0a765e8d5d42281c666c2cf.zip
FreeBSD-src-396490ec3e14b502b0a765e8d5d42281c666c2cf.tar.gz
check ptr against NULL
Diffstat (limited to 'sys/net80211/ieee80211.c')
-rw-r--r--sys/net80211/ieee80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211.c b/sys/net80211/ieee80211.c
index 0a1c256..9892107 100644
--- a/sys/net80211/ieee80211.c
+++ b/sys/net80211/ieee80211.c
@@ -1442,7 +1442,7 @@ ieee80211_rate2media(struct ieee80211com *ic, int rate, enum ieee80211_phymode m
return findmedia(rates, N(rates), rate | IFM_IEEE80211_FH);
case IEEE80211_MODE_AUTO:
/* NB: ic may be NULL for some drivers */
- if (ic && ic->ic_phytype == IEEE80211_T_FH)
+ if (ic != NULL && ic->ic_phytype == IEEE80211_T_FH)
return findmedia(rates, N(rates),
rate | IFM_IEEE80211_FH);
/* NB: hack, 11g matches both 11b+11a rates */
OpenPOWER on IntegriCloud