Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Remove duplicate code.
details: https://anonhg.NetBSD.org/src/rev/1b3c4f0cedd7
branches: trunk
changeset: 778807:1b3c4f0cedd7
user: nakayama <nakayama%NetBSD.org@localhost>
date: Sat Apr 14 02:15:01 2012 +0000
description:
Remove duplicate code.
diffstat:
sys/dev/ic/bwi.c | 17 ++---------------
1 files changed, 2 insertions(+), 15 deletions(-)
diffs (38 lines):
diff -r 6c81100eb169 -r 1b3c4f0cedd7 sys/dev/ic/bwi.c
--- a/sys/dev/ic/bwi.c Sat Apr 14 02:01:12 2012 +0000
+++ b/sys/dev/ic/bwi.c Sat Apr 14 02:15:01 2012 +0000
@@ -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 @@
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) {
Home |
Main Index |
Thread Index |
Old Index