From 1900800c9ad6e3c4d9f8c3d0274cc8a27a5e2b65 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 4 Feb 1994 20:50:44 +0000 Subject: Formerly io-readable.c.~3~ --- libdiskfs/io-readable.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libdiskfs/io-readable.c') diff --git a/libdiskfs/io-readable.c b/libdiskfs/io-readable.c index 5bf8c0d7..7a82696c 100644 --- a/libdiskfs/io-readable.c +++ b/libdiskfs/io-readable.c @@ -17,6 +17,7 @@ #include "priv.h" #include "io_S.h" +#include /* Implement io_readable as described in . */ error_t @@ -24,7 +25,6 @@ diskfs_S_io_readable (struct protid *cred, int *amount) { struct node *np; - error_t err; if (!cred) return EOPNOTSUPP; @@ -35,10 +35,9 @@ diskfs_S_io_readable (struct protid *cred, np = cred->po->np; mutex_lock (&np->lock); - err = ioserver_get_conch (&np->conch); - if (!err) - *amount = np->dn_stat.st_size - cred->po->filepointer; + ioserver_get_conch (&np->conch); + *amount = np->dn_stat.st_size - cred->po->filepointer; mutex_unlock (&np->lock); - return err; + return 0; } -- cgit v1.2.3