summaryrefslogtreecommitdiffstats
path: root/sys/fs/tmpfs
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2010-05-06 18:43:19 +0000
committertrasz <trasz@FreeBSD.org>2010-05-06 18:43:19 +0000
commite6f92048fafae32c1d688b4afc5fc0bbe4a045f4 (patch)
tree97cf9b8aa2245f7ce59e29002efc8508ca0b6f3f /sys/fs/tmpfs
parentf31c4b8ae5783c367f54c4693cef7f39c33cc935 (diff)
downloadFreeBSD-src-e6f92048fafae32c1d688b4afc5fc0bbe4a045f4.zip
FreeBSD-src-e6f92048fafae32c1d688b4afc5fc0bbe4a045f4.tar.gz
Style fixes and removal of unneeded variable.
Submitted by: bde@
Diffstat (limited to 'sys/fs/tmpfs')
-rw-r--r--sys/fs/tmpfs/tmpfs_vnops.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c
index 3ffef6b..330eea5 100644
--- a/sys/fs/tmpfs/tmpfs_vnops.c
+++ b/sys/fs/tmpfs/tmpfs_vnops.c
@@ -717,7 +717,6 @@ tmpfs_write(struct vop_write_args *v)
struct vnode *vp = v->a_vp;
struct uio *uio = v->a_uio;
int ioflag = v->a_ioflag;
- struct thread *td = uio->uio_td;
boolean_t extended;
int error = 0;
@@ -747,7 +746,7 @@ tmpfs_write(struct vop_write_args *v)
VFS_TO_TMPFS(vp->v_mount)->tm_maxfilesize)
return (EFBIG);
- if (vn_rlimit_fsize(vp, uio, td))
+ if (vn_rlimit_fsize(vp, uio, uio->uio_td))
return (EFBIG);
extended = uio->uio_offset + uio->uio_resid > node->tn_size;
OpenPOWER on IntegriCloud