]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: remove cfs_ip_addr_free wrapper
authorJames Simmons <jsimmons@infradead.org>
Thu, 22 Oct 2015 01:52:42 +0000 (21:52 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Oct 2015 01:52:21 +0000 (18:52 -0700)
No need to have a one line wrapper in libcfs that only
is used to delete a list which is only done once in the
LNet layer.

Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/libcfs_string.h
drivers/staging/lustre/lnet/lnet/config.c
drivers/staging/lustre/lustre/libcfs/libcfs_string.c

index d178e43c8f5061e0aba332da38080e63bf947c1a..908efaac9ed735cd2b6e9548d50a688da93d3aec 100644 (file)
@@ -102,6 +102,5 @@ int cfs_expr_list_parse(char *str, int len, unsigned min, unsigned max,
 void cfs_expr_list_free_list(struct list_head *list);
 int cfs_ip_addr_parse(char *str, int len, struct list_head *list);
 int cfs_ip_addr_match(__u32 addr, struct list_head *list);
-void cfs_ip_addr_free(struct list_head *list);
 
 #endif
index b09a438c49d6243864b2c7857576d423932ed5cc..1b3bc8386524f90707b4959523104e76dc0bdeaa 100644 (file)
@@ -824,7 +824,7 @@ lnet_match_network_token(char *token, int len, __u32 *ipaddrs, int nip)
        for (rc = i = 0; !rc && i < nip; i++)
                rc = cfs_ip_addr_match(ipaddrs[i], &list);
 
-       cfs_ip_addr_free(&list);
+       cfs_expr_list_free_list(&list);
 
        return rc;
 }
index 896185f54c4fded303b88211ed2913fd06a81084..51669613fc68b08bf98d7febac05ea4ad3706f02 100644 (file)
@@ -624,10 +624,3 @@ cfs_ip_addr_match(__u32 addr, struct list_head *list)
        return i == 4;
 }
 EXPORT_SYMBOL(cfs_ip_addr_match);
-
-void
-cfs_ip_addr_free(struct list_head *list)
-{
-       cfs_expr_list_free_list(list);
-}
-EXPORT_SYMBOL(cfs_ip_addr_free);