Module Name:    src
Committed By:   macallan
Date:           Fri Apr  6 22:11:52 UTC 2018

Modified Files:
        src/sys/dev/pci: if_rtwn.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/sys/dev/pci/if_rtwn.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/if_rtwn.c
diff -u src/sys/dev/pci/if_rtwn.c:1.14 src/sys/dev/pci/if_rtwn.c:1.15
--- src/sys/dev/pci/if_rtwn.c:1.14	Thu Feb  8 09:05:19 2018
+++ src/sys/dev/pci/if_rtwn.c	Fri Apr  6 22:11:51 2018
@@ -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 @@ rtwn_attach(device_t parent, device_t se
 	if (!pmf_device_register(self, NULL, NULL))
 		aprint_error_dev(self, "couldn't establish power handler\n");
 
+	return;
+
 fail:
 	rtwn_detach(self, 0);
 }

Reply via email to