diff options
author | stephen hemminger <stephen@networkplumber.org> | 2014-03-05 01:36:44 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-06 22:08:52 +0100 |
commit | f3253339a47ff3690ce52e2acd95ec295f8521b3 (patch) | |
tree | b1785d926e67f74c09549a3b070541c17e409b5e /drivers/net/bonding/bond_main.c | |
parent | bonding: remove dead code (diff) | |
download | linux-f3253339a47ff3690ce52e2acd95ec295f8521b3.tar.xz linux-f3253339a47ff3690ce52e2acd95ec295f8521b3.zip |
bonding: options handling cleanup
Make local functions static (ie. only used in bond_options.c)
Make bond options parsing tables constant.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bond_main.c')
-rw-r--r-- | drivers/net/bonding/bond_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index e299c54ec185..324389b44915 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -3950,7 +3950,8 @@ static void bond_uninit(struct net_device *bond_dev) static int bond_check_params(struct bond_params *params) { int arp_validate_value, fail_over_mac_value, primary_reselect_value, i; - struct bond_opt_value newval, *valptr; + struct bond_opt_value newval; + const struct bond_opt_value *valptr; int arp_all_targets_value; /* |