* [PATCH] ethernet: marvell/octeontx2: Simplify the return expression of npc_is_same
@ 2021-06-18 7:34 dingsenjie
2021-06-18 19:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: dingsenjie @ 2021-06-18 7:34 UTC (permalink / raw)
To: davem, kuba, sgoutham, lcherian, gakula, jerinj
Cc: netdev, linux-kernel, dingsenjie
From: dingsenjie <dingsenjie@yulong.com>
Simplify the return expression in the rvu_npc_fs.c
Signed-off-by: dingsenjie <dingsenjie@yulong.com>
---
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
index 14832b6..1995df4 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c
@@ -116,11 +116,8 @@ static bool npc_is_field_present(struct rvu *rvu, enum key_fields type, u8 intf)
static bool npc_is_same(struct npc_key_field *input,
struct npc_key_field *field)
{
- int ret;
-
- ret = memcmp(&input->layer_mdata, &field->layer_mdata,
- sizeof(struct npc_layer_mdata));
- return ret == 0;
+ return memcmp(&input->layer_mdata, &field->layer_mdata,
+ sizeof(struct npc_layer_mdata)) == 0;
}
static void npc_set_layer_mdata(struct npc_mcam *mcam, enum key_fields type,
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ethernet: marvell/octeontx2: Simplify the return expression of npc_is_same
2021-06-18 7:34 [PATCH] ethernet: marvell/octeontx2: Simplify the return expression of npc_is_same dingsenjie
@ 2021-06-18 19:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-06-18 19:20 UTC (permalink / raw)
To: None
Cc: davem, kuba, sgoutham, lcherian, gakula, jerinj, netdev,
linux-kernel, dingsenjie
Hello:
This patch was applied to netdev/net-next.git (refs/heads/master):
On Fri, 18 Jun 2021 15:34:31 +0800 you wrote:
> From: dingsenjie <dingsenjie@yulong.com>
>
> Simplify the return expression in the rvu_npc_fs.c
>
> Signed-off-by: dingsenjie <dingsenjie@yulong.com>
> ---
> drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
Here is the summary with links:
- ethernet: marvell/octeontx2: Simplify the return expression of npc_is_same
https://git.kernel.org/netdev/net-next/c/e44dc724826c
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-06-18 19:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18 7:34 [PATCH] ethernet: marvell/octeontx2: Simplify the return expression of npc_is_same dingsenjie
2021-06-18 19:20 ` patchwork-bot+netdevbpf
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.