diff --git a/src/core/timing.c b/src/core/timing.c index d7e7653bd..11b808a93 100644 --- a/src/core/timing.c +++ b/src/core/timing.c @@ -55,13 +55,11 @@ void mTimingDeschedule(struct mTiming* timing, struct mTimingEvent* event) { } bool mTimingIsScheduled(const struct mTiming* timing, const struct mTimingEvent* event) { - struct mTimingEvent* const* previous = &timing->root; const struct mTimingEvent* next = timing->root; while (next) { if (next == event) { return true; } - previous = &next->next; next = next->next; } return false;