Skip to content

Commit 5123e6e

Browse files
avargitster
authored andcommitted
run-command.c: remove dead assignment in while-loop
Remove code that's been unused since it was added in c553c72 (run-command: add an asynchronous parallel child processor, 2015-12-15). Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 56c8fb1 commit 5123e6e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

run-command.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1632,9 +1632,7 @@ static void pp_buffer_stderr(struct parallel_processes *pp,
16321632
const struct run_process_parallel_opts *opts,
16331633
int output_timeout)
16341634
{
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) {
16381636
if (errno == EINTR)
16391637
continue;
16401638
pp_cleanup(pp, opts);

0 commit comments

Comments
 (0)