staging: lustre: remove cfs_ip_addr_free wrapper

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>
This commit is contained in:
James Simmons 2015-10-21 21:52:42 -04:00 committed by Greg Kroah-Hartman
parent 43049a83b5
commit a620ec6372
3 changed files with 1 additions and 9 deletions

View 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

View 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;
}

View 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);