summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-03-03 05:53:48 +0000
committerriastradh <riastradh@NetBSD.org>2022-03-03 05:53:48 +0000
commita26414d815ad20c304071bbb2d686fbad521719f (patch)
tree8cbd6e0b3ab9f492b1bbcc9ea39ada7103b09703 /sys/dev
parent79223058baac1473b63d764a9bb528b97e924b8d (diff)
aue(4): Simplify. No functional change.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/if_aue.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/sys/dev/usb/if_aue.c b/sys/dev/usb/if_aue.c
index 3114ae75cff..dcc4746ad1b 100644
--- a/sys/dev/usb/if_aue.c
+++ b/sys/dev/usb/if_aue.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_aue.c,v 1.183 2022/03/03 05:53:41 riastradh Exp $ */
+/* $NetBSD: if_aue.c,v 1.184 2022/03/03 05:53:48 riastradh Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -76,7 +76,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.183 2022/03/03 05:53:41 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_aue.c,v 1.184 2022/03/03 05:53:48 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -948,7 +948,7 @@ aue_uno_init(struct ifnet *ifp)
{
struct usbnet * const un = ifp->if_softc;
struct aue_softc *sc = usbnet_softc(un);
- int i, rv;
+ int i;
const u_char *eaddr;
AUEHIST_FUNC();
@@ -980,11 +980,7 @@ aue_uno_init(struct ifnet *ifp)
AUE_SETBIT(sc, AUE_CTL0, AUE_CTL0_TX_ENB);
AUE_SETBIT(sc, AUE_CTL2, AUE_CTL2_EP3_CLR);
- rv = usbnet_init_rx_tx(un);
-
- //mii_mediachg(mii);
-
- return rv;
+ return usbnet_init_rx_tx(un);
}
static void