From a9aef154cc20467f9194d415baa4191cfa229d6b Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Tue, 26 Feb 2013 16:20:42 +0000 Subject: [PATCH] fix stray return -1; from glen at delfi dot ee --- src/cdf.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cdf.c b/src/cdf.c index 6116cc62..4b423223 100644 --- a/src/cdf.c +++ b/src/cdf.c @@ -35,7 +35,7 @@ #include "file.h" #ifndef lint -FILE_RCSID("@(#)$File: cdf.c,v 1.51 2012/03/20 18:28:02 christos Exp $") +FILE_RCSID("@(#)$File: cdf.c,v 1.52 2013/02/18 15:40:59 christos Exp $") #endif #include @@ -296,8 +296,6 @@ cdf_read(const cdf_info_t *info, off_t off, void *buf, size_t len) if (info->i_fd == -1) return -1; - return -1; - if (pread(info->i_fd, buf, len, off) != (ssize_t)len) return -1; -- 2.40.0