Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 May 2014 07:57:51 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r265527 - head/sys/dev/ath
Message-ID:  <201405070757.s477vpBC030292@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Wed May  7 07:57:50 2014
New Revision: 265527
URL: http://svnweb.freebsd.org/changeset/base/265527

Log:
  There's no need to be this paranoid - ni is deferenced before this
  point.
  
  Coverity ID:	 CID 1211937

Modified:
  head/sys/dev/ath/if_ath_rx.c

Modified: head/sys/dev/ath/if_ath_rx.c
==============================================================================
--- head/sys/dev/ath/if_ath_rx.c	Wed May  7 07:56:36 2014	(r265526)
+++ head/sys/dev/ath/if_ath_rx.c	Wed May  7 07:57:50 2014	(r265527)
@@ -344,7 +344,7 @@ ath_recv_mgmt(struct ieee80211_node *ni,
 
 #define	TU_TO_TSF(_tu)	(((u_int64_t)(_tu)) << 10)
 	tsf_intval = 1;
-	if (ni != NULL && ni->ni_intval > 0) {
+	if (ni->ni_intval > 0) {
 		tsf_intval = TU_TO_TSF(ni->ni_intval);
 	}
 #undef	TU_TO_TSF



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