diff options
author | phk <phk@FreeBSD.org> | 2004-09-24 07:11:02 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-09-24 07:11:02 +0000 |
commit | 615a2ebb57e736a1d4ee3bdb6716ca8092227cd5 (patch) | |
tree | 2788cb9cb8f3afd7dd48bec118f4e234867d50b5 /sys/kern/vfs_mount.c | |
parent | 01a7a173734d915aee215f17dfd5f0509aeb5a9d (diff) | |
download | FreeBSD-src-615a2ebb57e736a1d4ee3bdb6716ca8092227cd5.zip FreeBSD-src-615a2ebb57e736a1d4ee3bdb6716ca8092227cd5.tar.gz |
Eliminate devsw() call, we are not dereferencing the pointer.
Diffstat (limited to 'sys/kern/vfs_mount.c')
-rw-r--r-- | sys/kern/vfs_mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_mount.c b/sys/kern/vfs_mount.c index 0699283..3b5a0dc 100644 --- a/sys/kern/vfs_mount.c +++ b/sys/kern/vfs_mount.c @@ -1346,7 +1346,7 @@ vfs_mountroot_try(const char *mountfrom) } /* If the root device is a type "memory disk", mount RW */ - if (rootdev != NULL && devsw(rootdev) != NULL) { + if (rootdev != NULL && rootdev->si_devsw != NULL) { devname = devtoname(rootdev); if (devname[0] == 'm' && devname[1] == 'd') mp->mnt_flag &= ~MNT_RDONLY; |