PERFORCE change 66150 for review
Sam Leffler
sam at FreeBSD.org
Tue Nov 30 15:31:04 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=66150
Change 66150 by sam at sam_ebb on 2004/11/30 23:30:13
strip debug code no longer needed
Affected files ...
.. //depot/projects/wifi/sys/dev/ath/if_ath.c#34 edit
Differences ...
==== //depot/projects/wifi/sys/dev/ath/if_ath.c#34 (text+ko) ====
@@ -3278,28 +3278,6 @@
return 0;
}
-#include <sys/kdb.h>
-static void
-checkbf(struct ath_buf *bf, const char *when, u_int d, u_int c)
-{
- struct mbuf *m;
- int i, j;
-
- for (m = bf->bf_m, i = 0; m != NULL; m = m->m_next, i++)
- if (m != bf->bf_mshadow[i]) {
- printf("%s: m %p != bf_mshadow[%u] %p, depth %u cur %u\n",
- when, m, i, bf->bf_mshadow[i], d, c);
- for (j = 0; j < i; j++)
- printf("bf_mshadow[%u] %p\n", j, bf->bf_mshadow[j]);
- kdb_enter(__func__);
- }
- if (i != bf->bf_nm) {
- printf("%s: i %u != bf_nm %u depth %u cur %u\n",
- when, i, bf->bf_nm, d, c);
- kdb_enter(__func__);
- }
-}
-
/*
* Process completed xmit descriptors from the specified queue.
*/
@@ -3314,9 +3292,7 @@
struct ath_node *an;
int sr, lr, pri;
HAL_STATUS status;
-u_int depth = txq->axq_depth;/*XXX*/
-(void) depth;
DPRINTF(sc, ATH_DEBUG_TX_PROC, "%s: tx queue %u head %p link %p\n",
__func__, txq->axq_qnum,
(caddr_t)(uintptr_t) ath_hal_gettxbuf(sc->sc_ah, txq->axq_qnum),
@@ -3389,11 +3365,9 @@
*/
ieee80211_free_node(ni);
}
-checkbf(bf, "before", depth, txq->axq_depth);/*XXX*/
bus_dmamap_sync(sc->sc_dmat, bf->bf_dmamap,
BUS_DMASYNC_POSTWRITE);
bus_dmamap_unload(sc->sc_dmat, bf->bf_dmamap);
-checkbf(bf, "after", depth, txq->axq_depth);/*XXX*/
m_freem(bf->bf_m);
bf->bf_m = NULL;
bf->bf_node = NULL;
More information about the p4-projects
mailing list