]> git.baikalelectronics.ru Git - kernel.git/commitdiff
octeon_ep: use bitwise AND
authorShreenidhi Shedi <sshedi@vmware.com>
Sun, 26 Jun 2022 13:29:47 +0000 (18:59 +0530)
committerJakub Kicinski <kuba@kernel.org>
Tue, 28 Jun 2022 04:56:35 +0000 (21:56 -0700)
This should be bitwise operator not logical.

Fixes: 2214a12665a2 ("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>
drivers/net/ethernet/marvell/octeon_ep/octep_regs_cn9k_pf.h

index cc51149790ff686b02d85e490c879bf58e3241b7..3d5d39a52fe645b286aa8cc5a54937daf5a8b281 100644 (file)
@@ -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