svn commit: r265527 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Wed May 7 07:57:51 UTC 2014
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
More information about the svn-src-all
mailing list