aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-06-20 08:47:37 -0700
committerFlorin Coras <fcoras@cisco.com>2023-06-20 08:47:37 -0700
commit5cca669fc723371f6692e4b88136728bf7353b92 (patch)
tree7c33318173b22b286eb76ec34c52b45bfb0b841c
parentf0c67adfb27f6a6a37ccea7e359a416ecdf01825 (diff)
vcl: fix epoll lt coverity warning
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I6900d9ab147d35f99f944bf741f6bb329c8ea0df
-rw-r--r--src/vcl/vppcom.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c
index 424b14b08cf..d9cc885bb0e 100644
--- a/src/vcl/vppcom.c
+++ b/src/vcl/vppcom.c
@@ -3414,13 +3414,13 @@ vcl_epoll_wait_handle_lt (vcl_worker_t *wrk, struct epoll_event *events,
{
events[*n_evts].events = evt_flags;
events[*n_evts].data.u64 = evt_data;
- *n_evts += 1;
- add_event = 0;
- evt_flags = 0;
if (EPOLLONESHOT & s->vep.ev.events)
s->vep.ev.events = EPOLLHUP | EPOLLERR;
if (evt_flags & EPOLLHUP)
s->vep.ev.events = 0;
+ *n_evts += 1;
+ add_event = 0;
+ evt_flags = 0;
if (*n_evts == maxevents)
{
wrk->ep_lt_current = next;