diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2008-04-10 06:46:12 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-10 06:46:12 -0400 |
commit | ef3660ce0649fa10265455f539b72607cff53d02 (patch) | |
tree | f4818fbfe6c0d375e7d230db1bbaef9b72a7d0e0 /net/ipv4 | |
parent | 2e1e9848accba7e5f6a731bf0d0fc2c84f3ee748 (diff) |
ipv4: fib_trie remove unused argument
The trie pointer is passed down to flush_list and flush_leaf
but never used.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/fib_trie.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index 64a274282042..595a2eedb2dc 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
@@ -1670,7 +1670,7 @@ static int fn_trie_delete(struct fib_table *tb, struct fib_config *cfg) | |||
1670 | return 0; | 1670 | return 0; |
1671 | } | 1671 | } |
1672 | 1672 | ||
1673 | static int trie_flush_list(struct trie *t, struct list_head *head) | 1673 | static int trie_flush_list(struct list_head *head) |
1674 | { | 1674 | { |
1675 | struct fib_alias *fa, *fa_node; | 1675 | struct fib_alias *fa, *fa_node; |
1676 | int found = 0; | 1676 | int found = 0; |
@@ -1688,7 +1688,7 @@ static int trie_flush_list(struct trie *t, struct list_head *head) | |||
1688 | return found; | 1688 | return found; |
1689 | } | 1689 | } |
1690 | 1690 | ||
1691 | static int trie_flush_leaf(struct trie *t, struct leaf *l) | 1691 | static int trie_flush_leaf(struct leaf *l) |
1692 | { | 1692 | { |
1693 | int found = 0; | 1693 | int found = 0; |
1694 | struct hlist_head *lih = &l->list; | 1694 | struct hlist_head *lih = &l->list; |
@@ -1696,7 +1696,7 @@ static int trie_flush_leaf(struct trie *t, struct leaf *l) | |||
1696 | struct leaf_info *li = NULL; | 1696 | struct leaf_info *li = NULL; |
1697 | 1697 | ||
1698 | hlist_for_each_entry_safe(li, node, tmp, lih, hlist) { | 1698 | hlist_for_each_entry_safe(li, node, tmp, lih, hlist) { |
1699 | found += trie_flush_list(t, &li->falh); | 1699 | found += trie_flush_list(&li->falh); |
1700 | 1700 | ||
1701 | if (list_empty(&li->falh)) { | 1701 | if (list_empty(&li->falh)) { |
1702 | hlist_del_rcu(&li->hlist); | 1702 | hlist_del_rcu(&li->hlist); |
@@ -1787,7 +1787,7 @@ static int fn_trie_flush(struct fib_table *tb) | |||
1787 | int found = 0; | 1787 | int found = 0; |
1788 | 1788 | ||
1789 | for (l = trie_firstleaf(t); l; l = trie_nextleaf(l)) { | 1789 | for (l = trie_firstleaf(t); l; l = trie_nextleaf(l)) { |
1790 | found += trie_flush_leaf(t, l); | 1790 | found += trie_flush_leaf(l); |
1791 | 1791 | ||
1792 | if (ll && hlist_empty(&ll->list)) | 1792 | if (ll && hlist_empty(&ll->list)) |
1793 | trie_leaf_remove(t, ll); | 1793 | trie_leaf_remove(t, ll); |