summaryrefslogtreecommitdiff
path: root/libdiskfs/io-read.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdiskfs/io-read.c')
-rw-r--r--libdiskfs/io-read.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libdiskfs/io-read.c b/libdiskfs/io-read.c
index fc6faf88..96a480cd 100644
--- a/libdiskfs/io-read.c
+++ b/libdiskfs/io-read.c
@@ -63,14 +63,8 @@ diskfs_S_io_read (struct protid *cred,
*datalen = maxread;
if (maxread)
- {
- err = _diskfs_rdwr_internal (np, buf, off, datalen, 0,
- cred->po->openstat & O_NOATIME);
- if (*datalen)
- /* If we read any, we can just return a short read count
- with no error; the next read will hit the error again. */
- err = 0;
- }
+ err = _diskfs_rdwr_internal (np, buf, off, datalen, 0,
+ cred->po->openstat & O_NOATIME);
else
err = 0;
if (diskfs_synchronous)