summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-08-20 12:30:00 +0000
committerriastradh <riastradh@NetBSD.org>2022-08-20 12:30:00 +0000
commitbbfd1dce84edb6d1e84931ec1d2a8e8ad772228a (patch)
tree2954703b3c2ff9f1467515c0de4f025c5d57b451 /sys/dev
parent9f900bb529a0232fd3acc321461afb8707370bc6 (diff)
usbnet(9): Revert previous -- usbnet_media_upd does have IFNET_LOCK.
Not sure why I thought otherwise.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usbnet.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/usbnet.c b/sys/dev/usb/usbnet.c
index f9ea956aba9..177bda8d41d 100644
--- a/sys/dev/usb/usbnet.c
+++ b/sys/dev/usb/usbnet.c
@@ -1,4 +1,4 @@
-/* $NetBSD: usbnet.c,v 1.98 2022/08/20 12:28:25 riastradh Exp $ */
+/* $NetBSD: usbnet.c,v 1.99 2022/08/20 12:30:00 riastradh Exp $ */
/*
* Copyright (c) 2019 Matthew R. Green
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.98 2022/08/20 12:28:25 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.99 2022/08/20 12:30:00 riastradh Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -986,8 +986,6 @@ usbnet_media_upd(struct ifnet *ifp)
mii_phy_reset(miisc);
}
- if (unp->unp_stopping)
- return 0;
return ether_mediachange(ifp);
}