diff options
author | sam <sam@FreeBSD.org> | 2009-02-19 04:34:22 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-02-19 04:34:22 +0000 |
commit | 396490ec3e14b502b0a765e8d5d42281c666c2cf (patch) | |
tree | 65ed71b3a24557a35c53d7d591e2dc0cfb8d4d40 | |
parent | 8f46eec09092317db7590d5595fb47dec500f9d3 (diff) | |
download | FreeBSD-src-396490ec3e14b502b0a765e8d5d42281c666c2cf.zip FreeBSD-src-396490ec3e14b502b0a765e8d5d42281c666c2cf.tar.gz |
check ptr against NULL
-rw-r--r-- | sys/net80211/ieee80211.c | 2 |
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 */ |