svn commit: r188775 - head/sys/net80211

Sam Leffler sam at FreeBSD.org
Wed Feb 18 20:34:23 PST 2009


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 */


More information about the svn-src-head mailing list