[PATCH] bridge: cfm: remove redundant return

Subsystems: ethernet bridge, networking [general], the rest

STALE1874d

2 messages, 2 authors, 2021-06-22 · open the first message on its own page

[PATCH] bridge: cfm: remove redundant return

From: <hidden>
Date: 2021-06-22 06:05:42

From: gushengxian <redacted>

Return statements are not needed in Void function.

Signed-off-by: gushengxian <redacted>
---
 net/bridge/br_cfm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/bridge/br_cfm.c b/net/bridge/br_cfm.c
index 001064f7583d..a3c755d0a09d 100644
--- a/net/bridge/br_cfm.c
+++ b/net/bridge/br_cfm.c
@@ -142,7 +142,7 @@ static void br_cfm_notify(int event, const struct net_bridge_port *port)
 {
 	u32 filter = RTEXT_FILTER_CFM_STATUS;
 
-	return br_info_notify(event, port->br, NULL, filter);
+	br_info_notify(event, port->br, NULL, filter);
 }
 
 static void cc_peer_enable(struct br_cfm_peer_mep *peer_mep)
-- 
2.25.1

Re: [PATCH] bridge: cfm: remove redundant return

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-06-22 17:40:12

Hello:

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

On Mon, 21 Jun 2021 23:05:19 -0700 you wrote:
From: gushengxian <redacted>

Return statements are not needed in Void function.

Signed-off-by: gushengxian <redacted>
---
 net/bridge/br_cfm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
  - bridge: cfm: remove redundant return
    https://git.kernel.org/netdev/net-next/c/98534fce52ef

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

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help