include/all-io: remove unnecessary condition [lgtm scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
8e76d28dbd
commit
b2ce7d5827
|
@ -70,8 +70,7 @@ static inline ssize_t read_all(int fd, char *buf, size_t count)
|
||||||
}
|
}
|
||||||
return c ? c : -1;
|
return c ? c : -1;
|
||||||
}
|
}
|
||||||
if (ret > 0)
|
tries = 0;
|
||||||
tries = 0;
|
|
||||||
count -= ret;
|
count -= ret;
|
||||||
buf += ret;
|
buf += ret;
|
||||||
c += ret;
|
c += ret;
|
||||||
|
|
Loading…
Reference in New Issue