]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
include/all-io: remove unnecessary condition [lgtm scan]
authorKarel Zak <kzak@redhat.com>
Fri, 20 Sep 2019 14:00:13 +0000 (16:00 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 20 Sep 2019 14:00:13 +0000 (16:00 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
include/all-io.h

index dd4556fcb60662b3a08e5d524f9e4cd119e03cbe..8ffa9cfb110722d48493404b9035df3732c360e4 100644 (file)
@@ -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;
                buf += ret;
                c += ret;
                count -= ret;
                buf += ret;
                c += ret;