From b578b0bdd349ead64753d064b05f33eb82df37b5 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Wed, 18 May 2005 22:05:12 +0000 Subject: [PATCH] devfs_first() return value isn't used, remove it. --- sys/kern/vfs_mount.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 38c076f30fcd..8f24aaf351c0 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -1090,7 +1090,7 @@ set_rootvnode(struct thread *td) * yet. Create a /dev -> / symlink so that absolute pathnames will lookup. */ -static struct mount * +static void devfs_first(void) { struct thread *td = curthread; @@ -1101,17 +1101,17 @@ devfs_first(void) vfsp = vfs_byname("devfs"); KASSERT(vfsp != NULL, ("Could not find devfs by name")); if (vfsp == NULL) - return(NULL); + return; error = vfs_mount_alloc(NULLVP, vfsp, "/dev", td, &mp); KASSERT(error == 0, ("vfs_mount_alloc failed %d", error)); if (error) - return (NULL); + return; error = VFS_MOUNT(mp, curthread); KASSERT(error == 0, ("VFS_MOUNT(devfs) failed %d", error)); if (error) - return (NULL); + return; mtx_lock(&mountlist_mtx); TAILQ_INSERT_HEAD(&mountlist, mp, mnt_list); @@ -1122,8 +1122,6 @@ devfs_first(void) error = kern_symlink(td, "/", "dev", UIO_SYSSPACE); if (error) printf("kern_symlink /dev -> / returns %d\n", error); - - return (mp); } /*