Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Mar 2017 22:40:51 +0000 (UTC)
From:      Andriy Voskoboinyk <avos@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r316116 - head/sys/dev/iwn
Message-ID:  <201703282240.v2SMep1K024332@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avos
Date: Tue Mar 28 22:40:51 2017
New Revision: 316116
URL: https://svnweb.freebsd.org/changeset/base/316116

Log:
  iwn: remove unneeded cast.

Modified:
  head/sys/dev/iwn/if_iwn.c

Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c	Tue Mar 28 22:32:11 2017	(r316115)
+++ head/sys/dev/iwn/if_iwn.c	Tue Mar 28 22:40:51 2017	(r316116)
@@ -2994,7 +2994,7 @@ iwn_rx_done(struct iwn_softc *sc, struct
 	struct iwn_ops *ops = &sc->ops;
 	struct ieee80211com *ic = &sc->sc_ic;
 	struct iwn_rx_ring *ring = &sc->rxq;
-	struct ieee80211_frame *wh;
+	struct ieee80211_frame_min *wh;
 	struct ieee80211_node *ni;
 	struct mbuf *m, *m1;
 	struct iwn_rx_stat *stat;
@@ -3096,9 +3096,9 @@ iwn_rx_done(struct iwn_softc *sc, struct
 	m->m_pkthdr.len = m->m_len = len;
 
 	/* Grab a reference to the source node. */
-	wh = mtod(m, struct ieee80211_frame *);
+	wh = mtod(m, struct ieee80211_frame_min *);
 	if (len >= sizeof(struct ieee80211_frame_min))
-		ni = ieee80211_find_rxnode(ic, (struct ieee80211_frame_min *)wh);
+		ni = ieee80211_find_rxnode(ic, wh);
 	else
 		ni = NULL;
 	nf = (ni != NULL && ni->ni_vap->iv_state == IEEE80211_S_RUN &&
@@ -3130,7 +3130,7 @@ iwn_rx_done(struct iwn_softc *sc, struct
 	if (sc->sc_beacon_wait) {
 		uint8_t type, subtype;
 		/* NB: Re-assign wh */
-		wh = mtod(m, struct ieee80211_frame *);
+		wh = mtod(m, struct ieee80211_frame_min *);
 		type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK;
 		subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK;
 		/*



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