Module Name:    src
Committed By:   nakayama
Date:           Sat Apr 14 02:15:02 UTC 2012

Modified Files:
        src/sys/dev/ic: bwi.c

Log Message:
Remove duplicate code.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/ic/bwi.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/bwi.c
diff -u src/sys/dev/ic/bwi.c:1.20 src/sys/dev/ic/bwi.c:1.21
--- src/sys/dev/ic/bwi.c:1.20	Thu Apr 12 12:52:58 2012
+++ src/sys/dev/ic/bwi.c	Sat Apr 14 02:15:01 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: bwi.c,v 1.20 2012/04/12 12:52:58 nakayama Exp $	*/
+/*	$NetBSD: bwi.c,v 1.21 2012/04/14 02:15:01 nakayama Exp $	*/
 /*	$OpenBSD: bwi.c,v 1.74 2008/02/25 21:13:30 mglocker Exp $	*/
 
 /*
@@ -48,7 +48,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bwi.c,v 1.20 2012/04/12 12:52:58 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bwi.c,v 1.21 2012/04/14 02:15:01 nakayama Exp $");
 
 #include <sys/param.h>
 #include <sys/callout.h>
@@ -7915,19 +7915,6 @@ bwi_dma_txstats_alloc(struct bwi_softc *
 		return (error);
 	}
 
-	/*
-	 * Create TX stats descriptor DMA stuffs
-	 */
-	dma_size = roundup(desc_sz * BWI_TXSTATS_NDESC, BWI_RING_ALIGN);
-
-	error = bus_dmamap_create(sc->sc_dmat, dma_size, 1, dma_size, 0,
-	    BUS_DMA_NOWAIT, &st->stats_ring_dmap);
-	if (error) {
-		aprint_error_dev(sc->sc_dev,
-		    "can't create txstats ring DMA mem\n");
-		return (error);
-	}
-
 	error = bus_dmamem_alloc(sc->sc_dmat, dma_size, BWI_RING_ALIGN, 0,
 	     &st->stats_ring_seg, 1, &nsegs, BUS_DMA_NOWAIT);
 	if (error) {

Reply via email to