summaryrefslogtreecommitdiff
path: root/sys/fs/udf/udf_vfsops.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2005-03-15 20:00:03 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2005-03-15 20:00:03 +0000
commit45c26fa2b6f0f510e3b8424d379638aaf549bc63 (patch)
tree0df7ee974522d53324dfa9c6197c29fa4c9ee7c8 /sys/fs/udf/udf_vfsops.c
parent0c3a1acbbb88c278e710f9d13c046c312c7dd5f9 (diff)
Notes
Diffstat (limited to 'sys/fs/udf/udf_vfsops.c')
-rw-r--r--sys/fs/udf/udf_vfsops.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/fs/udf/udf_vfsops.c b/sys/fs/udf/udf_vfsops.c
index 60eaa7b31e50..0fa8a69e6917 100644
--- a/sys/fs/udf/udf_vfsops.c
+++ b/sys/fs/udf/udf_vfsops.c
@@ -604,10 +604,8 @@ udf_vget(struct mount *mp, ino_t ino, int flags, struct vnode **vpp)
vp->v_data = unode;
error = vfs_hash_insert(vp, ino, flags, curthread, vpp);
- if (error || *vpp != NULL) {
- vput(vp);
+ if (error || *vpp != NULL)
return (error);
- }
/*
* Copy in the file entry. Per the spec, the size can only be 1 block.