From: Anatoly Burakov Date: Fri, 1 Jun 2018 09:08:10 +0000 (+0100) Subject: eal/linux: fix invalid syntax in interrupts X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=462dd3722eb7dec0db5833fbccb044e06d2a8e50;p=dpdk.git eal/linux: fix invalid syntax in interrupts Parentheses were missing. It worked because macro is enclosed in parentheses, so syntax was valid after macro expansion. Bugzilla ID: 58 Fixes: 0a45657a6794 ("pci: rework interrupt handling") Cc: stable@dpdk.org Signed-off-by: Anatoly Burakov --- diff --git a/lib/librte_eal/linuxapp/eal/eal_interrupts.c b/lib/librte_eal/linuxapp/eal/eal_interrupts.c index 056d41c129..a631124d3d 100644 --- a/lib/librte_eal/linuxapp/eal/eal_interrupts.c +++ b/lib/librte_eal/linuxapp/eal/eal_interrupts.c @@ -420,7 +420,7 @@ rte_intr_callback_register(const struct rte_intr_handle *intr_handle, TAILQ_FOREACH(src, &intr_sources, next) { if (src->intr_handle.fd == intr_handle->fd) { /* we had no interrupts for this */ - if TAILQ_EMPTY(&src->callbacks) + if (TAILQ_EMPTY(&src->callbacks)) wake_thread = 1; TAILQ_INSERT_TAIL(&(src->callbacks), callback, next);