[PATCH] octeon_ep: use bitwise AND

From: Shreenidhi Shedi
Date: Sun Jun 26 2022 - 09:29:59 EST


From: Shreenidhi Shedi <sshedi@xxxxxxxxxx>

This should be bitwise operator not logical.

Fixes: 862cd659a6fb ("octeon_ep: Add driver framework and device initialization")
Signed-off-by: Shreenidhi Shedi <sshedi@xxxxxxxxxx>
---
drivers/net/ethernet/marvell/octeon_ep/octep_regs_cn9k_pf.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/marvell/octeon_ep/octep_regs_cn9k_pf.h b/drivers/net/ethernet/marvell/octeon_ep/octep_regs_cn9k_pf.h
index cc5114979..3d5d39a52 100644
--- a/drivers/net/ethernet/marvell/octeon_ep/octep_regs_cn9k_pf.h
+++ b/drivers/net/ethernet/marvell/octeon_ep/octep_regs_cn9k_pf.h
@@ -52,7 +52,7 @@

#define CN93_SDP_EPF_RINFO_SRN(val) ((val) & 0xFF)
#define CN93_SDP_EPF_RINFO_RPVF(val) (((val) >> 32) & 0xF)
-#define CN93_SDP_EPF_RINFO_NVFS(val) (((val) >> 48) && 0xFF)
+#define CN93_SDP_EPF_RINFO_NVFS(val) (((val) >> 48) & 0xFF)

/* SDP Function select */
#define CN93_SDP_FUNC_SEL_EPF_BIT_POS 8
--
2.36.1