diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-06-06 14:25:39 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2009-06-06 14:25:39 +0000 |
commit | eb97938b3f996ffe267d77ddde27a0f2afb96a32 (patch) | |
tree | 51ccaccb67995e0bdb04b21c7fccf9eb733aca20 | |
parent | dd2613cfc1548e74a8cdb52c3fc646332ff3cf61 (diff) |
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.c | 8 |
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, |