summaryrefslogtreecommitdiffstats
path: root/sys/gnu/fs/ext2fs/ext2_vfsops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/gnu/fs/ext2fs/ext2_vfsops.c')
-rw-r--r--sys/gnu/fs/ext2fs/ext2_vfsops.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/gnu/fs/ext2fs/ext2_vfsops.c b/sys/gnu/fs/ext2fs/ext2_vfsops.c
index 5c2fed4..295accb 100644
--- a/sys/gnu/fs/ext2fs/ext2_vfsops.c
+++ b/sys/gnu/fs/ext2fs/ext2_vfsops.c
@@ -944,10 +944,8 @@ ext2_vget(mp, ino, flags, vpp)
ip->i_number = ino;
error = vfs_hash_insert(vp, ino, flags, curthread, vpp);
- if (error || *vpp != NULL) {
- vput(vp);
+ if (error || *vpp != NULL)
return (error);
- }
/* Read in the disk contents for the inode, copy into the inode. */
#if 0
OpenPOWER on IntegriCloud