Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern PR/52174: Remove root test, it is too verbose. XXX:...
details: https://anonhg.NetBSD.org/src/rev/be942d87bfea
branches: trunk
changeset: 353048:be942d87bfea
user: christos <christos%NetBSD.org@localhost>
date: Tue Apr 18 18:07:29 2017 +0000
description:
PR/52174: Remove root test, it is too verbose. XXX: need to come up with
something better.
diffstat:
sys/kern/kern_module.c | 13 ++-----------
1 files changed, 2 insertions(+), 11 deletions(-)
diffs (41 lines):
diff -r 818232719c8f -r be942d87bfea sys/kern/kern_module.c
--- a/sys/kern/kern_module.c Tue Apr 18 17:28:18 2017 +0000
+++ b/sys/kern/kern_module.c Tue Apr 18 18:07:29 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_module.c,v 1.123 2017/04/11 21:15:57 christos Exp $ */
+/* $NetBSD: kern_module.c,v 1.124 2017/04/18 18:07:29 christos Exp $ */
/*-
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.123 2017/04/11 21:15:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_module.c,v 1.124 2017/04/18 18:07:29 christos Exp $");
#define _MODULE_INTERNAL
@@ -54,7 +54,6 @@
#include <sys/kthread.h>
#include <sys/sysctl.h>
#include <sys/lock.h>
-#include <sys/vnode.h>
#include <uvm/uvm_extern.h>
@@ -609,14 +608,6 @@
{
int error;
- if (rootvp == NULL) {
-#ifdef DIAGNOSTIC
- printf("%s: trying to load `%s' before root is mounted\n",
- __func__, filename);
-#endif
- return EPERM;
- }
-
kernconfig_lock();
/* Nothing if the user has disabled it. */
Home |
Main Index |
Thread Index |
Old Index