include/all-io: remove unnecessary condition [lgtm scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2019-09-20 16:00:13 +02:00
parent 8e76d28dbd
commit b2ce7d5827
1 changed files with 1 additions and 2 deletions

View File

@ -70,8 +70,7 @@ static inline ssize_t read_all(int fd, char *buf, size_t count)
}
return c ? c : -1;
}
if (ret > 0)
tries = 0;
tries = 0;
count -= ret;
buf += ret;
c += ret;