diff options
author | Ian Moffett <ian@osmora.org> | 2024-06-25 22:51:25 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-06-25 22:51:25 -0400 |
commit | 648ee268cd47d72a8843238726c682c4bbef34fc (patch) | |
tree | e9b1970c61852828f7154c0425c1a344701f20dd /sys | |
parent | e18827498a9bf64f09ae4156313b5045b6f409a9 (diff) |
kernel: vfs: Keep style consistent
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_subr.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 04d64e3..e1eefaa 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -62,10 +62,8 @@ vfs_alloc_mount(struct vnode *vp, struct fs_info *fip) struct mount *mp; mp = dynalloc(sizeof(*mp)); - - if (mp == NULL) { + if (mp == NULL) return NULL; - } memset(mp, 0, sizeof(*mp)); mp->vp = vp; @@ -83,13 +81,10 @@ vfs_release_vnode(struct vnode *vp) const struct vops *vops = vp->vops; int status = 0; - if (vp == NULL) { + if (vp == NULL) return -EINVAL; - } - - if (vops->reclaim != NULL) { + if (vops->reclaim != NULL) status = vops->reclaim(vp); - } dynfree(vp); return status; |