Skip to contentSkip to conversation

octeon_ep: use bitwise AND

PATCH Applied Shreenidhi Shedi 2 participants 2 messages Jun 26, 2022 – Jun 28, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 octeon_ep: use bitwise AND

From: Shreenidhi Shedi <[email protected]>

This should be bitwise operator not logical.

Fixes 862cd659a6fb ("octeon_ep: Add driver framework and device initialization")
---
 drivers/net/ethernet/marvell/octeon_ep/octep_regs_cn9k_pf.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/marvell/octeon_ep/octep_regs_cn9k_pf.h +1 -1
index cc5114979..3d5d39a52 100644
@@ -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

#1 lore raw
This patch was applied to netdev/net.git (master) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <[email protected]>:

Quoted 8 lines · On Sun, 26 Jun 2022 18:59:47 +0530 you wrote:

From: Shreenidhi Shedi <[email protected]>

This should be bitwise operator not logical.

Fixes 862cd659a6fb ("octeon_ep: Add driver framework and device initialization")

[...]

Here is the summary with links:
- octeon_ep: use bitwise AND

    https://git.kernel.org/netdev/net/c/4bbfed9112ca

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html