net/avp: fix interrupt migration check
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Apr 2017 06:49:03 +0000 (07:49 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 28 Apr 2017 12:46:19 +0000 (14:46 +0200)
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 <ferruh.yigit@intel.com>
Acked-by: Allain Legacy <allain.legacy@windriver.com>
drivers/net/avp/avp_ethdev.c

index 9ca2786..fe6849f 100644 (file)
@@ -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,