Author: sam
Date: Thu Feb 19 04:34:22 2009
New Revision: 188775
URL: http://svn.freebsd.org/changeset/base/188775

Log:
  check ptr against NULL

Modified:
  head/sys/net80211/ieee80211.c

Modified: head/sys/net80211/ieee80211.c
==============================================================================
--- head/sys/net80211/ieee80211.c       Thu Feb 19 04:33:36 2009        
(r188774)
+++ head/sys/net80211/ieee80211.c       Thu Feb 19 04:34:22 2009        
(r188775)
@@ -1442,7 +1442,7 @@ ieee80211_rate2media(struct ieee80211com
                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 */
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to