summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_uath.c
diff options
context:
space:
mode:
authorkevlo <kevlo@openbsd.org>2019-04-25 01:52:13 +0000
committerkevlo <kevlo@openbsd.org>2019-04-25 01:52:13 +0000
commit2e342c845e9966c26657b08851237fc18e7b5ff5 (patch)
tree71d13185fb2de7ea1c80a85a0122ffa2d26cfe31 /sys/dev/usb/if_uath.c
parentAlso touch --param ssp-buffer-size when using retguard in lieu of the (diff)
downloadwireguard-openbsd-2e342c845e9966c26657b08851237fc18e7b5ff5.tar.xz
wireguard-openbsd-2e342c845e9966c26657b08851237fc18e7b5ff5.zip
Follow up on jmatthew's suggestion:
in x_media_change(), return the errno from ieee80211_media_change() and do the error check from x_init(). ok stsp@, jmatthew@, phessler@
Diffstat (limited to 'sys/dev/usb/if_uath.c')
-rw-r--r--sys/dev/usb/if_uath.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/usb/if_uath.c b/sys/dev/usb/if_uath.c
index 0df977cef3c..30aa31b56bf 100644
--- a/sys/dev/usb/if_uath.c
+++ b/sys/dev/usb/if_uath.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_uath.c,v 1.82 2017/10/26 15:00:28 mpi Exp $ */
+/* $OpenBSD: if_uath.c,v 1.83 2019/04/25 01:52:14 kevlo Exp $ */
/*-
* Copyright (c) 2006
@@ -719,9 +719,9 @@ uath_media_change(struct ifnet *ifp)
return error;
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING))
- uath_init(ifp);
+ error = uath_init(ifp);
- return 0;
+ return error;
}
/*