mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-23 14:51:27 +02:00
CLEANUP: pollers: remove dead code in the polling loop
As reported by Ilya and Coverity in issue #1858, since recent commit eea152ee6 ("BUG/MINOR: signals/poller: ensure wakeup from signals") which removed the test for the global signal flag from the pollers' loop, the remaining "wake" flag doesn't need to be tested since it already participates to zeroing the wait_time and will be caught on the previous line. Let's just remove that test now.
This commit is contained in:
parent
62bde43779
commit
af985e0151
@ -238,8 +238,6 @@ static void _do_poll(struct poller *p, int exp, int wake)
|
|||||||
}
|
}
|
||||||
if (timeout || !wait_time)
|
if (timeout || !wait_time)
|
||||||
break;
|
break;
|
||||||
if (wake)
|
|
||||||
break;
|
|
||||||
if (tick_isset(exp) && tick_is_expired(exp, now_ms))
|
if (tick_isset(exp) && tick_is_expired(exp, now_ms))
|
||||||
break;
|
break;
|
||||||
} while (1);
|
} while (1);
|
||||||
|
@ -217,8 +217,6 @@ static void _do_poll(struct poller *p, int exp, int wake)
|
|||||||
break;
|
break;
|
||||||
if (timeout || !wait_time)
|
if (timeout || !wait_time)
|
||||||
break;
|
break;
|
||||||
if (wake)
|
|
||||||
break;
|
|
||||||
if (tick_isset(exp) && tick_is_expired(exp, now_ms))
|
if (tick_isset(exp) && tick_is_expired(exp, now_ms))
|
||||||
break;
|
break;
|
||||||
} while(1);
|
} while(1);
|
||||||
|
@ -191,8 +191,6 @@ static void _do_poll(struct poller *p, int exp, int wake)
|
|||||||
}
|
}
|
||||||
if (timeout || !wait_time)
|
if (timeout || !wait_time)
|
||||||
break;
|
break;
|
||||||
if (wake)
|
|
||||||
break;
|
|
||||||
if (tick_isset(exp) && tick_is_expired(exp, now_ms))
|
if (tick_isset(exp) && tick_is_expired(exp, now_ms))
|
||||||
break;
|
break;
|
||||||
} while (1);
|
} while (1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user