summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorShreenidhi Shedi <sshedi@vmware.com>2022-06-26 16:29:47 +0300
committerJakub Kicinski <kuba@kernel.org>2022-06-28 07:56:35 +0300
commit4bbfed9112ca9da88ac83d5ffe62c988f7169e9f (patch)
treedbeef34bb3a22acd950a6f96b752e17414d68ceb /drivers
parentcce13b82cf97b26919144e01c49fbf3da61c9d6c (diff)
downloadlinux-4bbfed9112ca9da88ac83d5ffe62c988f7169e9f.tar.xz
octeon_ep: use bitwise AND
This should be bitwise operator not logical. Fixes: 862cd659a6fb ("octeon_ep: Add driver framework and device initialization") Signed-off-by: Shreenidhi Shedi <sshedi@vmware.com> Link: https://lore.kernel.org/r/20220626132947.3992423-1-sshedi@vmware.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/marvell/octeon_ep/octep_regs_cn9k_pf.h2
1 files changed, 1 insertions, 1 deletions
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 cc51149790ff..3d5d39a52fe6 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