diff options
author | Michael I. Bushnell <mib@gnu.org> | 1995-06-20 15:48:44 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1995-06-20 15:48:44 +0000 |
commit | 12235ec5d3b87c11782d39732209a39bb1e55381 (patch) | |
tree | 482238fe9769ce667bc8fd1e35766a3cc25c178a /ufs | |
parent | 8ad6fc41b13f33ed47eb9ae01cdd6230af2de327 (diff) |
(ffs_realloccg): Remove assignments from if tests.
Diffstat (limited to 'ufs')
-rw-r--r-- | ufs/alloc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ufs/alloc.c b/ufs/alloc.c index 87b0b45a..add588ee 100644 --- a/ufs/alloc.c +++ b/ufs/alloc.c @@ -211,7 +211,8 @@ ffs_realloccg(register struct node *np, if (!diskfs_isuid (0, cred) && freespace(fs, fs->fs_minfree) <= 0) goto nospace; - if (error = diskfs_catch_exception ()) + error = diskfs_catch_exception (); + if (error) return error; bprev = (dino (np->dn->number))->di_db[lbprev]; diskfs_end_catch_exception (); @@ -237,7 +238,8 @@ ffs_realloccg(register struct node *np, * Check for extension in the existing location. */ cg = dtog(fs, bprev); - if (bno = ffs_fragextend(np, cg, (long)bprev, osize, nsize)) { + bno = ffs_fragextend(np, cg, (long)bprev, osize, nsize); + if (bno) assert (bno == bprev); spin_unlock (&alloclock); np->dn_stat.st_blocks += btodb(nsize - osize); |