Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/ufs/ufs Omit now-unused variable. rump build didn't cat...



details:   https://anonhg.NetBSD.org/src/rev/6af06f34561f
branches:  trunk
changeset: 337352:6af06f34561f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun Apr 12 22:48:38 2015 +0000

description:
Omit now-unused variable.  rump build didn't catch this...

diffstat:

 sys/ufs/ufs/ufs_readwrite.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r ff1ea29ab493 -r 6af06f34561f sys/ufs/ufs/ufs_readwrite.c
--- a/sys/ufs/ufs/ufs_readwrite.c       Sun Apr 12 22:41:28 2015 +0000
+++ b/sys/ufs/ufs/ufs_readwrite.c       Sun Apr 12 22:48:38 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ufs_readwrite.c,v 1.119 2015/04/12 22:41:28 riastradh Exp $    */
+/*     $NetBSD: ufs_readwrite.c,v 1.120 2015/04/12 22:48:38 riastradh Exp $    */
 
 /*-
  * Copyright (c) 1993
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: ufs_readwrite.c,v 1.119 2015/04/12 22:41:28 riastradh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: ufs_readwrite.c,v 1.120 2015/04/12 22:48:38 riastradh Exp $");
 
 #ifdef LFS_READWRITE
 #define        FS                      struct lfs
@@ -518,7 +518,7 @@
        FS *fs;
        int flags;
        struct buf *bp;
-       off_t osize, origoff;
+       off_t osize;
        int resid, xfersize, size, blkoffset;
        daddr_t lbn;
        int extended=0;
@@ -554,7 +554,6 @@
        fstrans_start(vp->v_mount, FSTRANS_SHARED);
 
        flags = ioflag & IO_SYNC ? B_SYNC : 0;
-       origoff = uio->uio_offset;
        resid = uio->uio_resid;
        osize = ip->i_size;
        error = 0;



Home | Main Index | Thread Index | Old Index