summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-02-04 21:35:20 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-02-04 21:35:20 +0000
commit5aba673e0bca5117202d8030b8ae8351379a32d4 (patch)
tree6b2490a4af7c7eaa0a42567543c07ae2bea7a105 /libdiskfs
parente610be11edb1981b9520c63d89af3830329b5467 (diff)
Formerly node-rdwr.c.~3~
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/node-rdwr.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/libdiskfs/node-rdwr.c b/libdiskfs/node-rdwr.c
index 3c099e4c..9a4f7788 100644
--- a/libdiskfs/node-rdwr.c
+++ b/libdiskfs/node-rdwr.c
@@ -37,9 +37,7 @@ diskfs_node_rdwr (struct node *np,
{
error_t err;
- err = ioserver_get_conch (&np->i_conch);
- if (err)
- return err;
+ ioserver_get_conch (&np->conch);
if (dir)
while (off + amt > np->allocsize)
@@ -58,7 +56,7 @@ diskfs_node_rdwr (struct node *np,
}
err = _diskfs_rdwr_internal (np, data, off, amt, dir);
- if (!err)
+ if (!err && amtread)
*amtread = amt;
return err;