Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/17276bebda89
branches: trunk
changeset: 789921:17276bebda89
user: martin <martin%NetBSD.org@localhost>
date: Thu Sep 12 21:11:37 2013 +0000
description:
Remove unused variable
diffstat:
sys/dev/pci/if_bge.c | 13 +++++--------
1 files changed, 5 insertions(+), 8 deletions(-)
diffs (57 lines):
diff -r 56669647eb60 -r 17276bebda89 sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c Thu Sep 12 21:03:11 2013 +0000
+++ b/sys/dev/pci/if_bge.c Thu Sep 12 21:11:37 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bge.c,v 1.258 2013/07/08 05:36:23 msaitoh Exp $ */
+/* $NetBSD: if_bge.c,v 1.259 2013/09/12 21:11:37 martin Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.258 2013/07/08 05:36:23 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.259 2013/09/12 21:11:37 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -4575,15 +4575,14 @@
if (sc->bge_pending_rxintr_change) {
uint32_t rx_ticks = sc->bge_rx_coal_ticks;
uint32_t rx_bds = sc->bge_rx_max_coal_bds;
- uint32_t junk;
CSR_WRITE_4(sc, BGE_HCC_RX_COAL_TICKS, rx_ticks);
DELAY(10);
- junk = CSR_READ_4(sc, BGE_HCC_RX_COAL_TICKS);
+ (void)CSR_READ_4(sc, BGE_HCC_RX_COAL_TICKS);
CSR_WRITE_4(sc, BGE_HCC_RX_MAX_COAL_BDS, rx_bds);
DELAY(10);
- junk = CSR_READ_4(sc, BGE_HCC_RX_MAX_COAL_BDS);
+ (void)CSR_READ_4(sc, BGE_HCC_RX_MAX_COAL_BDS);
sc->bge_pending_rxintr_change = 0;
}
@@ -4779,11 +4778,10 @@
bge_compact_dma_runt(struct mbuf *pkt)
{
struct mbuf *m, *prev;
- int totlen, prevlen;
+ int totlen;
prev = NULL;
totlen = 0;
- prevlen = -1;
for (m = pkt; m != NULL; prev = m,m = m->m_next) {
int mlen = m->m_len;
@@ -4880,7 +4878,6 @@
m = n; /* for continuing loop */
}
}
- prevlen = m->m_len;
}
return 0;
}
Home |
Main Index |
Thread Index |
Old Index