diff options
Diffstat (limited to 'sys/arch/usermode')
| -rw-r--r-- | sys/arch/usermode/dev/if_veth.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/arch/usermode/dev/if_veth.c b/sys/arch/usermode/dev/if_veth.c index a0ccd024bbb..a9488bf9c75 100644 --- a/sys/arch/usermode/dev/if_veth.c +++ b/sys/arch/usermode/dev/if_veth.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_veth.c,v 1.14 2020/02/05 07:18:16 skrll Exp $ */ +/* $NetBSD: if_veth.c,v 1.15 2021/06/16 00:21:18 riastradh Exp $ */ /*- * Copyright (c) 2011 Jared D. McNeill <jmcneill@invisible.ca> @@ -27,7 +27,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_veth.c,v 1.14 2020/02/05 07:18:16 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_veth.c,v 1.15 2021/06/16 00:21:18 riastradh Exp $"); #include <sys/param.h> #include <sys/proc.h> @@ -102,7 +102,6 @@ veth_attach(device_t parent, device_t self, void *opaque) struct veth_softc *sc = device_private(self); struct thunkbus_attach_args *taa = opaque; struct ifnet *ifp = &sc->sc_ec.ec_if; - int rv; sc->sc_dev = self; @@ -138,13 +137,7 @@ veth_attach(device_t parent, device_t self, void *opaque) IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN); IFQ_SET_READY(&ifq->if_snd); - rv = if_initialize(ifp); - if (rv != 0) { - aprint_error_dev(self, "if_initialize failed(%d)\n", rv); - thunk_close(sc->sc_tapfd); - pmf_device_deregister(self); - return; /* Error */ - } + if_initialize(ifp); ether_ifattach(ifp, sc->sc_eaddr); if_register(ifp); |
