1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

Eliminate devsw() call, we are not dereferencing the pointer.

This commit is contained in:
Poul-Henning Kamp 2004-09-24 07:11:02 +00:00
parent bd8a0d70f4
commit fe0b82752b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135720

View File

@ -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;