summaryrefslogtreecommitdiff
path: root/sys/ufs/ffs
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-12-06 06:55:42 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-12-06 06:55:42 +0000
commit184c6b3a551d8e25431851f66af05b88804eb7f3 (patch)
tree81da3d814cf276574f943d7623c95916d893537d /sys/ufs/ffs
parent705172fc53e9986a0c286c5db9735afeddc125ea (diff)
Don't compute values that we don't use later.
Diffstat (limited to 'sys/ufs/ffs')
-rw-r--r--sys/ufs/ffs/ffs_inode.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/ufs/ffs/ffs_inode.c b/sys/ufs/ffs/ffs_inode.c
index 55191fb3ea0..732a0b7c51b 100644
--- a/sys/ufs/ffs/ffs_inode.c
+++ b/sys/ufs/ffs/ffs_inode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ffs_inode.c,v 1.12 1999/02/26 03:56:30 art Exp $ */
+/* $OpenBSD: ffs_inode.c,v 1.13 1999/12/06 06:55:41 art Exp $ */
/* $NetBSD: ffs_inode.c,v 1.10 1996/05/11 18:27:19 mycroft Exp $ */
/*
@@ -253,8 +253,6 @@ ffs_truncate(v)
if (osize < length) {
if (length > fs->fs_maxfilesize)
return (EFBIG);
- offset = blkoff(fs, length - 1);
- lbn = lblkno(fs, length - 1);
aflags = B_CLRBUF;
if (ap->a_flags & IO_SYNC)
aflags |= B_SYNC;