diff options
author | Patrick Steinhardt <ps@pks.im> | 2017-07-21 11:26:13 +0200 |
---|---|---|
committer | Patrick Steinhardt <ps@pks.im> | 2017-07-21 11:28:13 +0200 |
commit | fdbb40fdd8b3a7337b9a354ca59039b19a50328a (patch) | |
tree | 81ed12c93e063177d5720d06f09bdb3ed3110571 /src/tsort.c | |
parent | e0568621535869451c91e915d28a69ac7c84b8b7 (diff) | |
download | libgit2-fdbb40fdd8b3a7337b9a354ca59039b19a50328a.tar.gz |
tsort: remove idempotent conditional assignment
The conditional `run < minrun` can never be true directly after
assigning `run = minrun`. Remove it to avoid confusion.
Diffstat (limited to 'src/tsort.c')
-rw-r--r-- | src/tsort.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tsort.c b/src/tsort.c index e59819204..8d1ed9787 100644 --- a/src/tsort.c +++ b/src/tsort.c @@ -310,7 +310,6 @@ static ssize_t collapse(void **dst, struct tsort_run *stack, ssize_t stack_curr, #define PUSH_NEXT() do {\ len = count_run(dst, curr, size, store);\ run = minrun;\ - if (run < minrun) run = minrun;\ if (run > (ssize_t)size - curr) run = size - curr;\ if (run > len) {\ bisort(&dst[curr], len, run, cmp, payload);\ |