Author: kib
Date: Sat Jan 31 12:58:04 2015
New Revision: 277972
URL: https://svnweb.freebsd.org/changeset/base/277972

Log:
  Remove single-use boolean.
  
  Sponsored by: The FreeBSD Foundation
  MFC after:    2 weeks

Modified:
  head/sys/fs/tmpfs/tmpfs_vnops.c

Modified: head/sys/fs/tmpfs/tmpfs_vnops.c
==============================================================================
--- head/sys/fs/tmpfs/tmpfs_vnops.c     Sat Jan 31 12:43:30 2015        
(r277971)
+++ head/sys/fs/tmpfs/tmpfs_vnops.c     Sat Jan 31 12:58:04 2015        
(r277972)
@@ -453,7 +453,6 @@ tmpfs_write(struct vop_write_args *v)
        struct tmpfs_node *node;
        off_t oldsize;
        int error, ioflag;
-       boolean_t extended;
 
        vp = v->a_vp;
        uio = v->a_uio;
@@ -473,8 +472,7 @@ tmpfs_write(struct vop_write_args *v)
                return (EFBIG);
        if (vn_rlimit_fsize(vp, uio, uio->uio_td))
                return (EFBIG);
-       extended = uio->uio_offset + uio->uio_resid > node->tn_size;
-       if (extended) {
+       if (uio->uio_offset + uio->uio_resid > node->tn_size) {
                error = tmpfs_reg_resize(vp, uio->uio_offset + uio->uio_resid,
                    FALSE);
                if (error != 0)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to