Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 2009 04:34:22 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188775 - head/sys/net80211
Message-ID:  <200902190434.n1J4YMHI084172@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200902190434.n1J4YMHI084172>