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:
parent
bd8a0d70f4
commit
fe0b82752b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=135720
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user