1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

devfs_first() return value isn't used, remove it.

This commit is contained in:
Pawel Jakub Dawidek 2005-05-18 22:05:12 +00:00
parent d246aa55e7
commit b578b0bdd3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146354

View File

@ -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);
}
/*