]> git.ipfire.org Git - thirdparty/git.git/commitdiff
run-command.c: remove dead assignment in while-loop
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 8 Feb 2023 19:21:11 +0000 (20:21 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Feb 2023 20:50:03 +0000 (12:50 -0800)
Remove code that's been unused since it was added in
c553c72eed6 (run-command: add an asynchronous parallel child
processor, 2015-12-15).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
run-command.c

index 50cc011654e1734cf79c4b073f130d909ecbf07f..b439c7974ca4b71847cb388af0b6cc5d78e63d78 100644 (file)
@@ -1632,9 +1632,7 @@ static void pp_buffer_stderr(struct parallel_processes *pp,
                             const struct run_process_parallel_opts *opts,
                             int output_timeout)
 {
-       int i;
-
-       while ((i = poll(pp->pfd, opts->processes, output_timeout) < 0)) {
+       while (poll(pp->pfd, opts->processes, output_timeout) < 0) {
                if (errno == EINTR)
                        continue;
                pp_cleanup(pp, opts);