Skip to content

Commit fdbb40f

Browse files
committed
tsort: remove idempotent conditional assignment
The conditional `run < minrun` can never be true directly after assigning `run = minrun`. Remove it to avoid confusion.
1 parent e056862 commit fdbb40f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/tsort.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,6 @@ static ssize_t collapse(void **dst, struct tsort_run *stack, ssize_t stack_curr,
310310
#define PUSH_NEXT() do {\
311311
len = count_run(dst, curr, size, store);\
312312
run = minrun;\
313-
if (run < minrun) run = minrun;\
314313
if (run > (ssize_t)size - curr) run = size - curr;\
315314
if (run > len) {\
316315
bisort(&dst[curr], len, run, cmp, payload);\

0 commit comments

Comments
 (0)