diff options
author | Kevin Lo <kevlo@cvs.openbsd.org> | 2019-04-25 01:52:15 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@cvs.openbsd.org> | 2019-04-25 01:52:15 +0000 |
commit | 051054e6749c6f3994c8399577bb5036d7c1f205 (patch) | |
tree | c4f46a42d5c52ed2e09d8b3ae8194c8659cacccf /sys/dev/ic/bwfm.c | |
parent | 58fe7e6a092745e1dfaf3e133e941c8ba8579cd5 (diff) |
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/ic/bwfm.c')
-rw-r--r-- | sys/dev/ic/bwfm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/bwfm.c b/sys/dev/ic/bwfm.c index 0174d2e603b..e0444f592fa 100644 --- a/sys/dev/ic/bwfm.c +++ b/sys/dev/ic/bwfm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bwfm.c,v 1.59 2019/04/01 15:19:56 patrick Exp $ */ +/* $OpenBSD: bwfm.c,v 1.60 2019/04/25 01:52:13 kevlo Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2016,2017 Patrick Wildt <patrick@blueri.se> @@ -757,7 +757,7 @@ bwfm_media_change(struct ifnet *ifp) bwfm_stop(ifp); bwfm_init(ifp); } - return 0; + return error; } /* Chip initialization (SDIO, PCIe) */ |