2021-04-14 15:36:43

by Jiabing Wan

[permalink] [raw]
Subject: [PATCH] [net] cavium/liquidio: Fix duplicate argument

Fix the following coccicheck warning:

./drivers/net/ethernet/cavium/liquidio/cn66xx_regs.h:413:6-28:
duplicated argument to & or |

The CN6XXX_INTR_M1UPB0_ERR here is duplicate.
Here should be CN6XXX_INTR_M1UNB0_ERR.

Signed-off-by: Wan Jiabing <[email protected]>
---
drivers/net/ethernet/cavium/liquidio/cn66xx_regs.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/cavium/liquidio/cn66xx_regs.h b/drivers/net/ethernet/cavium/liquidio/cn66xx_regs.h
index b248966837b4..7aad40b2aa73 100644
--- a/drivers/net/ethernet/cavium/liquidio/cn66xx_regs.h
+++ b/drivers/net/ethernet/cavium/liquidio/cn66xx_regs.h
@@ -412,7 +412,7 @@
| CN6XXX_INTR_M0UNWI_ERR \
| CN6XXX_INTR_M1UPB0_ERR \
| CN6XXX_INTR_M1UPWI_ERR \
- | CN6XXX_INTR_M1UPB0_ERR \
+ | CN6XXX_INTR_M1UNB0_ERR \
| CN6XXX_INTR_M1UNWI_ERR \
| CN6XXX_INTR_INSTR_DB_OF_ERR \
| CN6XXX_INTR_SLIST_DB_OF_ERR \
--
2.25.1


2021-04-15 00:47:15

by patchwork-bot+netdevbpf

[permalink] [raw]
Subject: Re: [PATCH] [net] cavium/liquidio: Fix duplicate argument

Hello:

This patch was applied to netdev/net.git (refs/heads/master):

On Wed, 14 Apr 2021 19:31:48 +0800 you wrote:
> Fix the following coccicheck warning:
>
> ./drivers/net/ethernet/cavium/liquidio/cn66xx_regs.h:413:6-28:
> duplicated argument to & or |
>
> The CN6XXX_INTR_M1UPB0_ERR here is duplicate.
> Here should be CN6XXX_INTR_M1UNB0_ERR.
>
> [...]

Here is the summary with links:
- [net] cavium/liquidio: Fix duplicate argument
https://git.kernel.org/netdev/net/c/416dcc5ce9d2

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html