summaryrefslogtreecommitdiff
path: root/ufs/alloc.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-20 15:48:44 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-20 15:48:44 +0000
commit42bd2716ce2507472bd009077632e196b13afbc2 (patch)
tree9fbc034e76dfb6eb31b33e7dcc35c6d8cc527743 /ufs/alloc.c
parent1f93fcd2d097106509747bb338287044f8feace6 (diff)
(ffs_realloccg): Remove assignments from if tests.
Diffstat (limited to 'ufs/alloc.c')
-rw-r--r--ufs/alloc.c6
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);