summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/dev/ic/bwfm.c4
-rw-r--r--sys/dev/ic/rtwn.c6
-rw-r--r--sys/dev/pci/if_iwi.c6
-rw-r--r--sys/dev/usb/if_ral.c6
-rw-r--r--sys/dev/usb/if_rsu.c6
-rw-r--r--sys/dev/usb/if_rum.c6
-rw-r--r--sys/dev/usb/if_run.c6
-rw-r--r--sys/dev/usb/if_uath.c6
-rw-r--r--sys/dev/usb/if_upgt.c4
-rw-r--r--sys/dev/usb/if_zyd.c6
10 files changed, 28 insertions, 28 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) */
diff --git a/sys/dev/ic/rtwn.c b/sys/dev/ic/rtwn.c
index e11771131c6..10088df332b 100644
--- a/sys/dev/ic/rtwn.c
+++ b/sys/dev/ic/rtwn.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtwn.c,v 1.45 2019/03/11 06:19:33 kevlo Exp $ */
+/* $OpenBSD: rtwn.c,v 1.46 2019/04/25 01:52:13 kevlo Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -745,9 +745,9 @@ rtwn_media_change(struct ifnet *ifp)
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) ==
(IFF_UP | IFF_RUNNING)) {
rtwn_stop(ifp);
- rtwn_init(ifp);
+ error = rtwn_init(ifp);
}
- return (0);
+ return (error);
}
/*
diff --git a/sys/dev/pci/if_iwi.c b/sys/dev/pci/if_iwi.c
index 2652cd5df5b..92dbe404acf 100644
--- a/sys/dev/pci/if_iwi.c
+++ b/sys/dev/pci/if_iwi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwi.c,v 1.138 2018/04/26 12:50:07 pirofti Exp $ */
+/* $OpenBSD: if_iwi.c,v 1.139 2019/04/25 01:52:13 kevlo Exp $ */
/*-
* Copyright (c) 2004-2008
@@ -647,9 +647,9 @@ iwi_media_change(struct ifnet *ifp)
return error;
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING))
- iwi_init(ifp);
+ error = iwi_init(ifp);
- return 0;
+ return error;
}
void
diff --git a/sys/dev/usb/if_ral.c b/sys/dev/usb/if_ral.c
index d3f68b91c85..9d81664f824 100644
--- a/sys/dev/usb/if_ral.c
+++ b/sys/dev/usb/if_ral.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ral.c,v 1.145 2019/01/13 14:27:15 mpi Exp $ */
+/* $OpenBSD: if_ral.c,v 1.146 2019/04/25 01:52:14 kevlo Exp $ */
/*-
* Copyright (c) 2005, 2006
@@ -497,9 +497,9 @@ ural_media_change(struct ifnet *ifp)
return error;
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING))
- ural_init(ifp);
+ error = ural_init(ifp);
- return 0;
+ return error;
}
/*
diff --git a/sys/dev/usb/if_rsu.c b/sys/dev/usb/if_rsu.c
index de65aaa91f5..417666c3503 100644
--- a/sys/dev/usb/if_rsu.c
+++ b/sys/dev/usb/if_rsu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rsu.c,v 1.43 2018/04/26 12:50:07 pirofti Exp $ */
+/* $OpenBSD: if_rsu.c,v 1.44 2019/04/25 01:52:14 kevlo Exp $ */
/*-
* Copyright (c) 2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -749,9 +749,9 @@ rsu_media_change(struct ifnet *ifp)
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) ==
(IFF_UP | IFF_RUNNING)) {
rsu_stop(ifp);
- rsu_init(ifp);
+ error = rsu_init(ifp);
}
- return (0);
+ return (error);
}
void
diff --git a/sys/dev/usb/if_rum.c b/sys/dev/usb/if_rum.c
index f75b35021ac..7126aaa9540 100644
--- a/sys/dev/usb/if_rum.c
+++ b/sys/dev/usb/if_rum.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_rum.c,v 1.123 2017/10/26 15:00:28 mpi Exp $ */
+/* $OpenBSD: if_rum.c,v 1.124 2019/04/25 01:52:14 kevlo Exp $ */
/*-
* Copyright (c) 2005-2007 Damien Bergamini <damien.bergamini@free.fr>
@@ -591,9 +591,9 @@ rum_media_change(struct ifnet *ifp)
return error;
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING))
- rum_init(ifp);
+ error = rum_init(ifp);
- return 0;
+ return error;
}
/*
diff --git a/sys/dev/usb/if_run.c b/sys/dev/usb/if_run.c
index 058a5a5d63f..fc6ba52f271 100644
--- a/sys/dev/usb/if_run.c
+++ b/sys/dev/usb/if_run.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_run.c,v 1.125 2018/01/30 20:56:38 zhuk Exp $ */
+/* $OpenBSD: if_run.c,v 1.126 2019/04/25 01:52:14 kevlo Exp $ */
/*-
* Copyright (c) 2008-2010 Damien Bergamini <damien.bergamini@free.fr>
@@ -1693,10 +1693,10 @@ run_media_change(struct ifnet *ifp)
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) ==
(IFF_UP | IFF_RUNNING)) {
run_stop(ifp, 0);
- run_init(ifp);
+ error = run_init(ifp);
}
- return 0;
+ return error;
}
void
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;
}
/*
diff --git a/sys/dev/usb/if_upgt.c b/sys/dev/usb/if_upgt.c
index 32b72e98c7b..d6db1086dd3 100644
--- a/sys/dev/usb/if_upgt.c
+++ b/sys/dev/usb/if_upgt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_upgt.c,v 1.82 2018/08/25 17:07:20 mestre Exp $ */
+/* $OpenBSD: if_upgt.c,v 1.83 2019/04/25 01:52:14 kevlo Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -1242,7 +1242,7 @@ upgt_media_change(struct ifnet *ifp)
upgt_init(ifp);
}
- return (0);
+ return (error);
}
void
diff --git a/sys/dev/usb/if_zyd.c b/sys/dev/usb/if_zyd.c
index fa948564709..689ac7e7178 100644
--- a/sys/dev/usb/if_zyd.c
+++ b/sys/dev/usb/if_zyd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_zyd.c,v 1.119 2018/11/27 14:53:56 mpi Exp $ */
+/* $OpenBSD: if_zyd.c,v 1.120 2019/04/25 01:52:14 kevlo Exp $ */
/*-
* Copyright (c) 2006 by Damien Bergamini <damien.bergamini@free.fr>
@@ -646,9 +646,9 @@ zyd_media_change(struct ifnet *ifp)
return error;
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING))
- zyd_init(ifp);
+ error = zyd_init(ifp);
- return 0;
+ return error;
}
/*