summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorMarvin Ma <marvin.ma@dell.com>2022-02-25 15:34:33 +0000
committerEric van Gyzen <vangyzen@FreeBSD.org>2022-03-03 14:20:08 +0000
commit769f1e79f58b9202471bff75f1f79bcbc6d0a03c (patch)
tree77069a0ba680f7feb4e50536ddf7b2fd6a42efaf /sys/kern
parent6a73d96ac4def6ba03788ed0914aa994c037778a (diff)
Diffstat (limited to 'sys/kern')
-rw-r--r--sys/kern/vfs_init.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/vfs_init.c b/sys/kern/vfs_init.c
index 3365ddb11474..e22a9561305d 100644
--- a/sys/kern/vfs_init.c
+++ b/sys/kern/vfs_init.c
@@ -545,14 +545,13 @@ vfs_unregister(struct vfsconf *vfc)
if (vfc->vfc_vfsops_sd->vfs_uninit != NULL)
error = vfc->vfc_vfsops_sd->vfs_uninit(vfsp);
} else {
- if (vfc->vfc_vfsops->vfs_uninit != NULL) {
+ if (vfc->vfc_vfsops->vfs_uninit != NULL)
error = vfc->vfc_vfsops->vfs_uninit(vfsp);
}
if (error != 0) {
vfsconf_unlock();
return (error);
}
- }
TAILQ_REMOVE(&vfsconf, vfsp, vfc_list);
maxtypenum = VFS_GENERIC;
TAILQ_FOREACH(vfsp, &vfsconf, vfc_list)