From: Ferruh Yigit Date: Fri, 28 Apr 2017 06:49:03 +0000 (+0100) Subject: net/avp: fix interrupt migration check X-Git-Tag: spdx-start~3333 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f353fbc5961e77858795ba7daeaa3fefb7aedbe6;p=dpdk.git net/avp: fix interrupt migration check Bitwise OR within if statement is always true, fix bitwise operator. Coverity issue: 1423906 Fixes: 82e140b84995 ("net/avp: handle interrupt migration") Signed-off-by: Ferruh Yigit Acked-by: Allain Legacy --- diff --git a/drivers/net/avp/avp_ethdev.c b/drivers/net/avp/avp_ethdev.c index 9ca27868c8..fe6849f59b 100644 --- a/drivers/net/avp/avp_ethdev.c +++ b/drivers/net/avp/avp_ethdev.c @@ -712,7 +712,7 @@ avp_dev_interrupt_handler(void *data) RTE_PTR_ADD(registers, RTE_AVP_INTERRUPT_STATUS_OFFSET)); - if (status | RTE_AVP_MIGRATION_INTERRUPT_MASK) { + if (status & RTE_AVP_MIGRATION_INTERRUPT_MASK) { /* handle interrupt based on current status */ value = AVP_READ32( RTE_PTR_ADD(registers,