summaryrefslogtreecommitdiff
path: root/net/tipc/name_table.c
diff options
context:
space:
mode:
authorHoang Le <hoang.h.le@dektech.com.au>2022-06-17 08:47:51 +0700
committerDavid S. Miller <davem@davemloft.net>2022-06-17 11:43:57 +0100
commit4875d94c69d5a4836c4225b51429d277c297aae8 (patch)
treed7403b84f85117677055d0a6c51eb1996daadaf3 /net/tipc/name_table.c
parent46e31db55da8e9661894e76086159ca28c348c5c (diff)
tipc: cleanup unused function
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> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/name_table.c')
-rw-r--r--net/tipc/name_table.c11
1 files changed, 0 insertions, 11 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;
-}