Module Name: src Committed By: riastradh Date: Thu Mar 3 05:53:49 UTC 2022
Modified Files: src/sys/dev/usb: if_aue.c Log Message: aue(4): Simplify. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.183 -r1.184 src/sys/dev/usb/if_aue.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/if_aue.c diff -u src/sys/dev/usb/if_aue.c:1.183 src/sys/dev/usb/if_aue.c:1.184 --- src/sys/dev/usb/if_aue.c:1.183 Thu Mar 3 05:53:41 2022 +++ src/sys/dev/usb/if_aue.c Thu Mar 3 05:53:48 2022 @@ -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