diff options
author | lurchi <lurchi@strangeplace.net> | 2018-01-22 18:46:36 +0100 |
---|---|---|
committer | lurchi <lurchi@strangeplace.net> | 2018-01-22 18:46:36 +0100 |
commit | 809029c8a4449ca670b9bd7fbb8ee0bbf33fb1f7 (patch) | |
tree | cb6e499ffe9ad4ac22eb5336025ad9f8fe0f2daf /src/util/scheduler.c | |
parent | 65239e99fa514c062995b34c961ba7cb010c1b62 (diff) | |
download | gnunet-809029c8a4449ca670b9bd7fbb8ee0bbf33fb1f7.tar.gz gnunet-809029c8a4449ca670b9bd7fbb8ee0bbf33fb1f7.zip |
remove unnecessary check
The reason field of tasks in the pending_timeout queue is never modified while the tasks are in the queue
Diffstat (limited to 'src/util/scheduler.c')
-rw-r--r-- | src/util/scheduler.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 2970d3c25..6a1b1a22d 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -1085,9 +1085,7 @@ GNUNET_SCHEDULER_add_at_with_priority (struct GNUNET_TIME_Absolute at, | |||
1085 | pos = pending_timeout_head; | 1085 | pos = pending_timeout_head; |
1086 | else | 1086 | else |
1087 | pos = prev->next; | 1087 | pos = prev->next; |
1088 | while ( (NULL != pos) && | 1088 | while ((NULL != pos) && (pos->timeout.abs_value_us <= t->timeout.abs_value_us)) |
1089 | ( (pos->timeout.abs_value_us <= t->timeout.abs_value_us) || | ||
1090 | (0 != pos->reason) ) ) | ||
1091 | { | 1089 | { |
1092 | prev = pos; | 1090 | prev = pos; |
1093 | pos = pos->next; | 1091 | pos = pos->next; |