Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2023-02-08 22:21:11 +0300
committerJunio C Hamano <gitster@pobox.com>2023-02-08 23:50:03 +0300
commit5123e6e7bd3b0bf3777cb77e36d141f76d8604a4 (patch)
tree7ab89cc9a6583355dd73440b8067de1a19817cfa /run-command.c
parent56c8fb1e95377900ec9d53c07886022af0a5d3c2 (diff)
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>
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/run-command.c b/run-command.c
index 50cc011654..b439c7974c 100644
--- a/run-command.c
+++ b/run-command.c
@@ -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);