Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci in rtwn_attach(): return; before unconditionally...



details:   https://anonhg.NetBSD.org/src/rev/de27e1f024e2
branches:  trunk
changeset: 831579:de27e1f024e2
user:      macallan <macallan%NetBSD.org@localhost>
date:      Fri Apr 06 22:11:51 2018 +0000

description:
in rtwn_attach(): return; before unconditionally running into fail:

diffstat:

 sys/dev/pci/if_rtwn.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 84561cec3ec3 -r de27e1f024e2 sys/dev/pci/if_rtwn.c
--- a/sys/dev/pci/if_rtwn.c     Fri Apr 06 19:57:03 2018 +0000
+++ b/sys/dev/pci/if_rtwn.c     Fri Apr 06 22:11:51 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_rtwn.c,v 1.14 2018/02/08 09:05:19 dholland Exp $    */
+/*     $NetBSD: if_rtwn.c,v 1.15 2018/04/06 22:11:51 macallan Exp $    */
 /*     $OpenBSD: if_rtwn.c,v 1.5 2015/06/14 08:02:47 stsp Exp $        */
 #define        IEEE80211_NO_HT
 /*-
@@ -23,7 +23,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_rtwn.c,v 1.14 2018/02/08 09:05:19 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_rtwn.c,v 1.15 2018/04/06 22:11:51 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/sockio.h>
@@ -396,6 +396,8 @@
        if (!pmf_device_register(self, NULL, NULL))
                aprint_error_dev(self, "couldn't establish power handler\n");
 
+       return;
+
 fail:
        rtwn_detach(self, 0);
 }



Home | Main Index | Thread Index | Old Index