From d88444761b047f23df9f0042a0414ca195ee7e87 Mon Sep 17 00:00:00 2001 From: ad Date: Tue, 20 May 2008 19:30:03 +0000 Subject: [PATCH] Ignore return from module_load() and just try vfsop lookup again. --- sys/kern/vfs_syscalls.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c index 0ea4276f0c9a..9ce93044d6e5 100644 --- a/sys/kern/vfs_syscalls.c +++ b/sys/kern/vfs_syscalls.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_syscalls.c,v 1.362 2008/05/20 19:20:38 ad Exp $ */ +/* $NetBSD: vfs_syscalls.c,v 1.363 2008/05/20 19:30:03 ad Exp $ */ /*- * Copyright (c) 2008 The NetBSD Foundation, Inc. @@ -63,7 +63,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.362 2008/05/20 19:20:38 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls.c,v 1.363 2008/05/20 19:30:03 ad Exp $"); #include "opt_compat_netbsd.h" #include "opt_compat_43.h" @@ -289,8 +289,7 @@ mount_get_vfsops(const char *fstype, struct vfsops **vfsops) return 0; /* If we can autoload a vfs module, try again */ - if (module_load(fstype, 0, NULL, MODULE_CLASS_VFS, true) != 0) - return ENODEV; + (void)module_load(fstype, 0, NULL, MODULE_CLASS_VFS, true); if ((*vfsops = vfs_getopsbyname(fstypename)) != NULL) return 0;