Author: bz
Date: Sat May 14 08:54:34 2016
New Revision: 299737
URL: https://svnweb.freebsd.org/changeset/base/299737

Log:
  Revert parts of r299575 in order to make more MIPS kernels build
  again hopefully.
  Rather than blindly removing a supposedly unused variable as reported by
  the Clang Static Analyzer, inspect the code and hide them with proper
  #ifdefs as they are used in certain conditional parts of the code.

Modified:
  head/sys/net80211/ieee80211_output.c

Modified: head/sys/net80211/ieee80211_output.c
==============================================================================
--- head/sys/net80211/ieee80211_output.c        Sat May 14 08:52:37 2016        
(r299736)
+++ head/sys/net80211/ieee80211_output.c        Sat May 14 08:54:34 2016        
(r299737)
@@ -121,6 +121,9 @@ ieee80211_vap_pkt_send_dest(struct ieee8
 {
        struct ieee80211com *ic = vap->iv_ic;
        struct ifnet *ifp = vap->iv_ifp;
+#ifdef IEEE80211_SUPPORT_SUPERG
+       int mcast;
+#endif
 
        if ((ni->ni_flags & IEEE80211_NODE_PWR_MGT) &&
            (m->m_flags & M_PWR_SAV) == 0) {
@@ -160,6 +163,9 @@ ieee80211_vap_pkt_send_dest(struct ieee8
         * interface it (might have been) received on.
         */
        m->m_pkthdr.rcvif = (void *)ni;
+#ifdef IEEE80211_SUPPORT_SUPERG
+       mcast = (m->m_flags & (M_MCAST | M_BCAST)) ? 1: 0;
+#endif
 
        BPF_MTAP(ifp, m);               /* 802.3 tx */
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to