run-command.c: remove dead assignment in while-loop
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>
Ævar Arnfjörð Bjarmason committed
Feb 8, 2023 at 20:21 UTC
5123e6e7bd3b0bf3777cb77e36d141f76d8604a4
1 file changed
+1
-3
run-command.c
+1
-3
@@ -1632,9 +1632,7 @@ static void pp_buffer_stderr(struct parallel_processes *pp,
1632
const struct run_process_parallel_opts *opts,
1633
int output_timeout)
1634
{
1635
- int i;
1636
-
1637
- while ((i = poll(pp->pfd, opts->processes, output_timeout) < 0)) {
1635
+ while (poll(pp->pfd, opts->processes, output_timeout) < 0) {
1636
if (errno == EINTR)
1637
continue;
1638
pp_cleanup(pp, opts);