Source-Changes-HG archive

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

[src/trunk]: src/sys/miscfs/specfs Revert previous



details:   https://anonhg.NetBSD.org/src/rev/63f7b6e35cea
branches:  trunk
changeset: 342461:63f7b6e35cea
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Wed Dec 23 00:13:57 2015 +0000

description:
Revert previous

diffstat:

 sys/miscfs/specfs/spec_vnops.c |  21 +++++----------------
 1 files changed, 5 insertions(+), 16 deletions(-)

diffs (50 lines):

diff -r c1b601c8b671 -r 63f7b6e35cea sys/miscfs/specfs/spec_vnops.c
--- a/sys/miscfs/specfs/spec_vnops.c    Tue Dec 22 23:54:37 2015 +0000
+++ b/sys/miscfs/specfs/spec_vnops.c    Wed Dec 23 00:13:57 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: spec_vnops.c,v 1.158 2015/12/22 23:54:37 pgoyette Exp $        */
+/*     $NetBSD: spec_vnops.c,v 1.159 2015/12/23 00:13:57 pgoyette Exp $        */
 
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.158 2015/12/22 23:54:37 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: spec_vnops.c,v 1.159 2015/12/23 00:13:57 pgoyette Exp $");
 
 #include <sys/param.h>
 #include <sys/proc.h>
@@ -573,12 +573,7 @@
                                break;
                        
                        /* Try to autoload device module */
-                       error = module_autoload(name, MODULE_CLASS_DRIVER);
-                       if (error != 0) {
-                               error = ENXIO;
-                               break;
-                       }
-
+                       (void) module_autoload(name, MODULE_CLASS_DRIVER);
                } while (gen != module_gen);
 
                vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
@@ -629,15 +624,9 @@
                        VOP_UNLOCK(vp);
 
                         /* Try to autoload device module */
-                       error = module_autoload(name, MODULE_CLASS_DRIVER);
-
+                       (void) module_autoload(name, MODULE_CLASS_DRIVER);
+                       
                        vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
-
-                       if (error != 0) {
-                               error = ENXIO;
-                               break;
-                       }
-                       
                } while (gen != module_gen);
 
                break;



Home | Main Index | Thread Index | Old Index