diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1998-10-29 09:44:12 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1998-10-29 09:44:12 +0000 |
| commit | 91ecc00e716a54ef1a062e0c8c771653c8fbb6ae (patch) | |
| tree | c6e94caaa4f9be1da54e604a96feeb7e7ff81545 /sys/gnu | |
| parent | 3a389eff91a4a1a1317c41acf2a1d2e72eade03d (diff) | |
Notes
Diffstat (limited to 'sys/gnu')
| -rw-r--r-- | sys/gnu/ext2fs/ext2_inode.c | 4 | ||||
| -rw-r--r-- | sys/gnu/fs/ext2fs/ext2_inode.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/gnu/ext2fs/ext2_inode.c b/sys/gnu/ext2fs/ext2_inode.c index b76410b1a307..933d031380aa 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 b76410b1a307..933d031380aa 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. |
