[1/3] batman-adv: drop useless argument for arp_change_timeout()
Commit Message
The net_device structure already has a "name" field therefore we don't need to
pass the name by using another parameter.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
distributed-arp-table.c | 4 ++--
distributed-arp-table.h | 2 +-
soft-interface.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
@@ -562,12 +562,12 @@ bool dat_drop_broadcast_packet(struct bat_priv *bat_priv,
return false;
}
-void arp_change_timeout(struct net_device *soft_iface, const char *name)
+void arp_change_timeout(struct net_device *soft_iface)
{
struct in_device *in_dev = in_dev_get(soft_iface);
if (!in_dev) {
pr_err("Unable to set ARP parameters for the batman interface '%s'\n",
- name);
+ soft_iface->name);
return;
}
@@ -49,7 +49,7 @@ bool dat_snoop_incoming_arp_reply(struct bat_priv *bat_priv,
struct sk_buff *skb, int hdr_size);
bool dat_drop_broadcast_packet(struct bat_priv *bat_priv,
struct forw_packet *forw_packet);
-void arp_change_timeout(struct net_device *soft_iface, const char *name);
+void arp_change_timeout(struct net_device *soft_iface);
/* hash function to choose an entry in a hash table of given size */
/* hash algorithm from http://en.wikipedia.org/wiki/Hash_table */
@@ -381,7 +381,7 @@ struct net_device *softif_create(const char *name)
goto free_soft_iface;
}
- arp_change_timeout(soft_iface, name);
+ arp_change_timeout(soft_iface);
bat_priv = netdev_priv(soft_iface);