summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/gnu/ext2fs/ext2_inode.c4
-rw-r--r--sys/gnu/fs/ext2fs/ext2_inode.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/gnu/ext2fs/ext2_inode.c b/sys/gnu/ext2fs/ext2_inode.c
index b76410b..933d031 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.
diff --git a/sys/gnu/fs/ext2fs/ext2_inode.c b/sys/gnu/fs/ext2fs/ext2_inode.c
index b76410b..933d031 100644
--- a/sys/gnu/fs/ext2fs/ext2_inode.c
+++ b/sys/gnu/fs/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.
OpenPOWER on IntegriCloud