From 648ee268cd47d72a8843238726c682c4bbef34fc Mon Sep 17 00:00:00 2001
From: Ian Moffett <ian@osmora.org>
Date: Tue, 25 Jun 2024 22:51:25 -0400
Subject: kernel: vfs: Keep style consistent

Signed-off-by: Ian Moffett <ian@osmora.org>
---
 sys/kern/vfs_subr.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

(limited to 'sys')

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;
-- 
cgit v1.2.3