summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-08-14 17:49:51 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-08-14 17:49:51 +0000
commit95d2009df3088ebefe0cb83bb8a02225e2757c53 (patch)
tree13187ada140714f8bd097201cb696123a07b0abc /sys/arch/vax
parentd9db964a17e5d08cf4fab1c137930d48eece41dd (diff)
Unused variable, and more fixes in the attach failure path.
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/if/sgec.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/arch/vax/if/sgec.c b/sys/arch/vax/if/sgec.c
index db7e580789c..e8ae91d90e2 100644
--- a/sys/arch/vax/if/sgec.c
+++ b/sys/arch/vax/if/sgec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sgec.c,v 1.23 2014/08/06 15:40:40 jsg Exp $ */
+/* $OpenBSD: sgec.c,v 1.24 2014/08/14 17:49:50 miod Exp $ */
/* $NetBSD: sgec.c,v 1.5 2000/06/04 02:14:14 matt Exp $ */
/*
* Copyright (c) 1999 Ludd, University of Lule}, Sweden. All rights reserved.
@@ -234,7 +234,7 @@ sgec_attach(sc)
fail_6:
for (i = 0; i < RXDESCS; i++) {
if (sc->sc_rxmbuf[i] != NULL) {
- bus_dmamap_unload(sc->sc_dmat, sc->sc_xmtmap[i]);
+ bus_dmamap_unload(sc->sc_dmat, sc->sc_rcvmap[i]);
m_freem(sc->sc_rxmbuf[i]);
}
}
@@ -464,7 +464,6 @@ sgec_rxintr(struct ze_softc *sc)
{
struct ze_cdata *zc = sc->sc_zedata;
struct ifnet *ifp = &sc->sc_if;
- struct ether_header *eh;
struct mbuf *m;
u_short rdes0;
int len;
@@ -492,7 +491,6 @@ sgec_rxintr(struct ze_softc *sc)
if (m != NULL) {
m->m_pkthdr.rcvif = ifp;
m->m_pkthdr.len = m->m_len = len;
- eh = mtod(m, struct ether_header *);
#if NBPFILTER > 0
if (ifp->if_bpf)
bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_IN);