Explicitly initialize 'error' to 0 (two places). It lets one to build tmpfs

from the latest source tree with older compiler--gcc3.

Reviewed by:	kib@ (on freebsd-current@)
Approved by:	cognet@ (mentor)
This commit is contained in:
wkoszek 2007-12-04 20:14:15 +00:00
parent 954e8dafee
commit 411cf00f62

View File

@ -529,7 +529,7 @@ tmpfs_read(struct vop_read_args *v)
size_t len;
int resid;
int error;
int error = 0;
node = VP_TO_TMPFS_NODE(vp);
@ -576,6 +576,8 @@ tmpfs_mappedwrite(vm_object_t vobj, vm_object_t tobj, size_t len, struct uio *ui
caddr_t va;
int error;
error = 0;
addr = uio->uio_offset;
idx = OFF_TO_IDX(addr);
offset = addr & PAGE_MASK;