netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [net-next] tipc: cleanup unused function
@ 2022-06-17  1:47 Hoang Le
  2022-06-17 10:50 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Hoang Le @ 2022-06-17  1:47 UTC (permalink / raw)
  To: jmaloy, maloy, ying.xue, tung.q.nguyen, kuba, pabeni, edumazet,
	tipc-discussion, netdev

tipc_dest_list_len() is not being called anywhere. Clean it up.

Acked-by: Jon Maloy <jmaloy@redhat.com>
Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
---
 net/tipc/name_table.c | 11 -----------
 net/tipc/name_table.h |  1 -
 2 files changed, 12 deletions(-)

diff --git a/net/tipc/name_table.c b/net/tipc/name_table.c
index 1d8ba233d047..d1180370fdf4 100644
--- a/net/tipc/name_table.c
+++ b/net/tipc/name_table.c
@@ -1202,14 +1202,3 @@ void tipc_dest_list_purge(struct list_head *l)
 		kfree(dst);
 	}
 }
-
-int tipc_dest_list_len(struct list_head *l)
-{
-	struct tipc_dest *dst;
-	int i = 0;
-
-	list_for_each_entry(dst, l, list) {
-		i++;
-	}
-	return i;
-}
diff --git a/net/tipc/name_table.h b/net/tipc/name_table.h
index 259f95e3d99c..3bcd9ef8cee3 100644
--- a/net/tipc/name_table.h
+++ b/net/tipc/name_table.h
@@ -151,6 +151,5 @@ bool tipc_dest_push(struct list_head *l, u32 node, u32 port);
 bool tipc_dest_pop(struct list_head *l, u32 *node, u32 *port);
 bool tipc_dest_del(struct list_head *l, u32 node, u32 port);
 void tipc_dest_list_purge(struct list_head *l);
-int tipc_dest_list_len(struct list_head *l);
 
 #endif
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [net-next] tipc: cleanup unused function
  2022-06-17  1:47 [net-next] tipc: cleanup unused function Hoang Le
@ 2022-06-17 10:50 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-06-17 10:50 UTC (permalink / raw)
  To: Hoang Le
  Cc: jmaloy, maloy, ying.xue, tung.q.nguyen, kuba, pabeni, edumazet,
	tipc-discussion, netdev

Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:

On Fri, 17 Jun 2022 08:47:51 +0700 you wrote:
> tipc_dest_list_len() is not being called anywhere. Clean it up.
> 
> Acked-by: Jon Maloy <jmaloy@redhat.com>
> Signed-off-by: Hoang Le <hoang.h.le@dektech.com.au>
> ---
>  net/tipc/name_table.c | 11 -----------
>  net/tipc/name_table.h |  1 -
>  2 files changed, 12 deletions(-)

Here is the summary with links:
  - [net-next] tipc: cleanup unused function
    https://git.kernel.org/netdev/net-next/c/4875d94c69d5

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:[~2022-06-17 10:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-17  1:47 [net-next] tipc: cleanup unused function Hoang Le
2022-06-17 10:50 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).