summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2009-06-06 14:25:38 +0000
committersthen <sthen@openbsd.org>2009-06-06 14:25:38 +0000
commita2f887ef980eddf3490a685a60f55c8a3d83cbfc (patch)
tree9707520e828f731ba89f34a239b858df32e1efe9
parentSync some rcsdiff changes to cvsdiff. As a side effect, (diff)
downloadwireguard-openbsd-a2f887ef980eddf3490a685a60f55c8a3d83cbfc.tar.xz
wireguard-openbsd-a2f887ef980eddf3490a685a60f55c8a3d83cbfc.zip
remove unused variable prevlen and a second initialization of ifp.
adjusted from a diff from chl@; ok naddy, Brad agrees.
-rw-r--r--sys/dev/pci/if_bge.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c
index 4fac83bfb51..f26a8f5440b 100644
--- a/sys/dev/pci/if_bge.c
+++ b/sys/dev/pci/if_bge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bge.c,v 1.272 2009/06/05 03:57:32 ray Exp $ */
+/* $OpenBSD: if_bge.c,v 1.273 2009/06/06 14:25:38 sthen Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -2789,11 +2789,10 @@ int
bge_compact_dma_runt(struct mbuf *pkt)
{
struct mbuf *m, *prev, *n = NULL;
- int totlen, prevlen, newprevlen;
+ int totlen, newprevlen;
prev = NULL;
totlen = 0;
- prevlen = -1;
for (m = pkt; m != NULL; prev = m,m = m->m_next) {
int mlen = m->m_len;
@@ -2876,7 +2875,6 @@ bge_compact_dma_runt(struct mbuf *pkt)
m_free(m);
m = n; /* for continuing loop */
}
- prevlen = m->m_len;
}
return (0);
}
@@ -3124,8 +3122,6 @@ bge_init(void *xsc)
return;
}
- ifp = &sc->arpcom.ac_if;
-
/* Specify MRU. */
if (BGE_IS_JUMBO_CAPABLE(sc))
CSR_WRITE_4(sc, BGE_RX_MTU,