Module Name: src
Committed By: martin
Date: Thu Sep 12 21:11:37 UTC 2013
Modified Files:
src/sys/dev/pci: if_bge.c
Log Message:
Remove unused variable
To generate a diff of this commit:
cvs rdiff -u -r1.258 -r1.259 src/sys/dev/pci/if_bge.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/pci/if_bge.c
diff -u src/sys/dev/pci/if_bge.c:1.258 src/sys/dev/pci/if_bge.c:1.259
--- src/sys/dev/pci/if_bge.c:1.258 Mon Jul 8 05:36:23 2013
+++ src/sys/dev/pci/if_bge.c Thu Sep 12 21:11:37 2013
@@ -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 @@ bge_intr(void *xsc)
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 @@ static inline int
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 @@ bge_compact_dma_runt(struct mbuf *pkt)
m = n; /* for continuing loop */
}
}
- prevlen = m->m_len;
}
return 0;
}