svn commit: r283934 - head/sys/dev/iwi

Gleb Smirnoff glebius at FreeBSD.org
Tue Jun 2 22:39:17 UTC 2015


Author: glebius
Date: Tue Jun  2 22:39:16 2015
New Revision: 283934
URL: https://svnweb.freebsd.org/changeset/base/283934

Log:
  The argument passed to the iwi_update_wme() is softc, not ieee80211com.
  
  This fatal mismatch appeared to be absolutely harmless, since both structs
  have pointer to struct ifnet as their first member, and they both point to
  the same ifnet.  And the first member is the only one used from the argument.

Modified:
  head/sys/dev/iwi/if_iwi.c

Modified: head/sys/dev/iwi/if_iwi.c
==============================================================================
--- head/sys/dev/iwi/if_iwi.c	Tue Jun  2 22:23:20 2015	(r283933)
+++ head/sys/dev/iwi/if_iwi.c	Tue Jun  2 22:39:16 2015	(r283934)
@@ -1083,8 +1083,7 @@ iwi_wme_setparams(struct iwi_softc *sc, 
 static void
 iwi_update_wme(void *arg, int npending)
 {
-	struct ieee80211com *ic = arg;
-	struct iwi_softc *sc = ic->ic_ifp->if_softc;
+	struct iwi_softc *sc = arg;
 	IWI_LOCK_DECL;
 
 	IWI_LOCK(sc);


More information about the svn-src-all mailing list