summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_ure.c
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-03-03 05:55:01 +0000
committerriastradh <riastradh@NetBSD.org>2022-03-03 05:55:01 +0000
commita5bc9be03ed762275ec00f70e1c942fa3395ae39 (patch)
tree614aa5336f133dd9ccd5d8dbd3aa71e4429e3526 /sys/dev/usb/if_ure.c
parent935c5078f86637fd83c4744283794c06378fd0da (diff)
usbnet drivers: Omit needless isdying tests in *_uno_init.
usbnet(9) already checks this immediately before calling *_uno_init.
Diffstat (limited to 'sys/dev/usb/if_ure.c')
-rw-r--r--sys/dev/usb/if_ure.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/usb/if_ure.c b/sys/dev/usb/if_ure.c
index 0f8c8f78122..5c6c6ab83cd 100644
--- a/sys/dev/usb/if_ure.c
+++ b/sys/dev/usb/if_ure.c
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ure.c,v 1.52 2022/03/03 05:54:37 riastradh Exp $ */
+/* $NetBSD: if_ure.c,v 1.53 2022/03/03 05:55:01 riastradh Exp $ */
/* $OpenBSD: if_ure.c,v 1.10 2018/11/02 21:32:30 jcs Exp $ */
/*-
@@ -30,7 +30,7 @@
/* RealTek RTL8152/RTL8153 10/100/Gigabit USB Ethernet device */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ure.c,v 1.52 2022/03/03 05:54:37 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ure.c,v 1.53 2022/03/03 05:55:01 riastradh Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -413,9 +413,6 @@ ure_uno_init(struct ifnet *ifp)
struct usbnet * const un = ifp->if_softc;
uint8_t eaddr[8];
- if (usbnet_isdying(un))
- return EIO;
-
/* Cancel pending I/O. */
if (ifp->if_flags & IFF_RUNNING)
usbnet_stop(un, ifp, 1);