]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
tipc: cleanup unused function
authorHoang Le <hoang.h.le@dektech.com.au>
Fri, 17 Jun 2022 01:47:51 +0000 (08:47 +0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jun 2022 10:43:57 +0000 (11:43 +0100)
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>
net/tipc/name_table.c
net/tipc/name_table.h

index 1d8ba233d047483e253ec4cf493a9ac109b41352..d1180370fdf41cb05c86522b4da6aa412a54cce9 100644 (file)
@@ -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;
-}
index 259f95e3d99cdc8947fc4b5c1feb4e7654a4785e..3bcd9ef8cee3046f09b07901b87e344f42253d69 100644 (file)
@@ -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