summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_vnops.c
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-09-30 10:55:23 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2016-09-30 10:55:23 +0000
commit6c6ac0f455429960edc766fd7bd1946d369ae7c9 (patch)
tree3d67e78a59fa3b464e2ed72df241b7443dba443c /sys/kern/vfs_vnops.c
parentd9f7eac08b3d3cde735673f8e8c2be9595a65ca2 (diff)
Drop a now unneeded variable initialization; spotted by bluhm@
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r--sys/kern/vfs_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c
index cfac17069ea..03adecf2ea5 100644
--- a/sys/kern/vfs_vnops.c
+++ b/sys/kern/vfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_vnops.c,v 1.86 2016/09/30 10:53:11 jca Exp $ */
+/* $OpenBSD: vfs_vnops.c,v 1.87 2016/09/30 10:55:22 jca Exp $ */
/* $NetBSD: vfs_vnops.c,v 1.20 1996/02/04 02:18:41 christos Exp $ */
/*
@@ -328,7 +328,7 @@ int
vn_read(struct file *fp, off_t *poff, struct uio *uio, struct ucred *cred)
{
struct vnode *vp = fp->f_data;
- int error = 0;
+ int error;
size_t count = uio->uio_resid;
struct proc *p = uio->uio_procp;