aboutsummaryrefslogtreecommitdiff
path: root/sys/gnu/ext2fs
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1998-10-29 09:44:12 +0000
committerPeter Wemm <peter@FreeBSD.org>1998-10-29 09:44:12 +0000
commit91ecc00e716a54ef1a062e0c8c771653c8fbb6ae (patch)
treec6e94caaa4f9be1da54e604a96feeb7e7ff81545 /sys/gnu/ext2fs
parent3a389eff91a4a1a1317c41acf2a1d2e72eade03d (diff)
Notes
Diffstat (limited to 'sys/gnu/ext2fs')
-rw-r--r--sys/gnu/ext2fs/ext2_inode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/gnu/ext2fs/ext2_inode.c b/sys/gnu/ext2fs/ext2_inode.c
index b76410b1a307c..933d031380aae 100644
--- a/sys/gnu/ext2fs/ext2_inode.c
+++ b/sys/gnu/ext2fs/ext2_inode.c
@@ -257,8 +257,8 @@ printf("ext2_truncate called %d to %d\n", VTOI(ovp)->i_number, length);
for (i = NDADDR - 1; i > lastblock; i--)
oip->i_db[i] = 0;
oip->i_flag |= IN_CHANGE | IN_UPDATE;
- if (error = UFS_UPDATE(ovp, &tv, &tv, MNT_WAIT))
- allerror = error;
+ allerror = UFS_UPDATE(ovp, &tv, &tv, MNT_WAIT);
+
/*
* Having written the new inode to disk, save its new configuration
* and put back the old block pointers long enough to process them.