diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2022-02-25 00:15:30 +0100 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2022-03-03 12:00:54 +0100 |
commit | b3810b664aa3422d0c69c8fcf713c24d7bf16c26 (patch) | |
tree | 4e04fcf6085035a7091ef6e17b43c75b6a61a9df /src/lib | |
parent | 3330f7f22105e3a8b57f5c562144d8c3e338e156 (diff) | |
download | ouroboros-b3810b664aa3422d0c69c8fcf713c24d7bf16c26.tar.gz ouroboros-b3810b664aa3422d0c69c8fcf713c24d7bf16c26.zip |
lib: Remove dead code in timerwheel
The checked condition can't happen.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/timerwheel.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/timerwheel.c b/src/lib/timerwheel.c index 487dcd0e..5c0fbfa0 100644 --- a/src/lib/timerwheel.c +++ b/src/lib/timerwheel.c @@ -395,12 +395,6 @@ static int timerwheel_ack(int fd, clock_gettime(PTHREAD_COND_CLOCK, &now); - slot = DELT_ACK >> ACKQ_RES; - if (slot >= ACKQ_SLOTS) { /* Out of timerwheel range. */ - free(a); - return -EPERM; - } - slot = (((ts_to_ns(now) + DELT_ACK) >> ACKQ_RES) + 1) & (ACKQ_SLOTS - 1); |