Signed-off-by: Alexander Aring <alex.aring@xxxxxxxxx> --- fs/fs.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index 1b43c61..9584495 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -804,9 +804,6 @@ static ssize_t __read(FILE *f, void *buf, size_t count) if (f->size != FILE_SIZE_STREAM && f->pos + count > f->size) count = f->size - f->pos; - if (!count) - return 0; - ret = fsdrv->read(dev, f, buf, count); if (ret < 0) -- 1.9.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox