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>
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,