summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-20 15:58:31 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-20 15:58:31 +0000
commit958bfec1c18be4d1a19a77a01f8bb7bb970f3e80 (patch)
treed2aa970cc91d52ba7d9d2811611607300a3b6bf9 /libdiskfs
parent072bde577bdbcb16a1c32520d0259c085d4c84b7 (diff)
(diskfs_node_rdwr): Remove assignment from if test.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/node-rdwr.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/libdiskfs/node-rdwr.c b/libdiskfs/node-rdwr.c
index 4f4b461f..438b7426 100644
--- a/libdiskfs/node-rdwr.c
+++ b/libdiskfs/node-rdwr.c
@@ -41,8 +41,11 @@ diskfs_node_rdwr (struct node *np,
if (dir)
while (off + amt > np->allocsize)
- if (err = diskfs_grow (np, off + amt, cred))
- return err;
+ {
+ err = diskfs_grow (np, off + amt, cred);
+ if (err)
+ return err;
+ }
if (off + amt > np->dn_stat.st_size)
{