mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
CLEANUP: poll: remove a useless double-check on fdtab[fd].owner
This check is already performed a few lines above in the same loop, remove it from the condition.
This commit is contained in:
parent
4a29144591
commit
db9cb0b9b7
3 changed files with 3 additions and 3 deletions
|
|
@ -161,7 +161,7 @@ REGPRM2 static void _do_poll(struct poller *p, int exp)
|
|||
((e & EPOLLHUP) ? FD_POLL_HUP : 0);
|
||||
}
|
||||
|
||||
if (fdtab[fd].iocb && fdtab[fd].owner && fdtab[fd].ev) {
|
||||
if (fdtab[fd].iocb && fdtab[fd].ev) {
|
||||
int new_updt, old_updt = fd_nbupdt; /* Save number of updates to detect creation of new FDs. */
|
||||
|
||||
/* Mark the events as speculative before processing
|
||||
|
|
|
|||
|
|
@ -170,7 +170,7 @@ REGPRM2 static void _do_poll(struct poller *p, int exp)
|
|||
((e & POLLHUP) ? FD_POLL_HUP : 0);
|
||||
}
|
||||
|
||||
if (fdtab[fd].iocb && fdtab[fd].owner && fdtab[fd].ev) {
|
||||
if (fdtab[fd].iocb && fdtab[fd].ev) {
|
||||
/* Mark the events as speculative before processing
|
||||
* them so that if nothing can be done we don't need
|
||||
* to poll again.
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ REGPRM2 static void _do_poll(struct poller *p, int exp)
|
|||
if (FD_ISSET(fd, tmp_evts[DIR_WR]))
|
||||
fdtab[fd].ev |= FD_POLL_OUT;
|
||||
|
||||
if (fdtab[fd].iocb && fdtab[fd].owner && fdtab[fd].ev) {
|
||||
if (fdtab[fd].iocb && fdtab[fd].ev) {
|
||||
/* Mark the events as speculative before processing
|
||||
* them so that if nothing can be done we don't need
|
||||
* to poll again.
|
||||
|
|
|
|||
Loading…
Reference in a new issue