diff options
author | Antonio Quartulli <a@unstable.cc> | 2016-09-24 20:46:36 -0400 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2016-10-17 10:28:47 -0400 |
commit | 843314c9775cf4e4dc171866b3376f52c85fbffb (patch) | |
tree | e9bf1bd23cb3f5969cbb074fbed540c7c2fb097c | |
parent | 6020a86a4a208485640f7e17742835755c557676 (diff) |
batman-adv: remove unsed argument from batadv_dbg_arp() function
The argument "type" passed to the batadv_dbg_arp() function is
never used. Remove it.
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
-rw-r--r-- | net/batman-adv/distributed-arp-table.c | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/net/batman-adv/distributed-arp-table.c b/net/batman-adv/distributed-arp-table.c index e257efdc5d03..cbb4f3232a7b 100644 --- a/net/batman-adv/distributed-arp-table.c +++ b/net/batman-adv/distributed-arp-table.c | |||
@@ -369,12 +369,11 @@ out: | |||
369 | * batadv_dbg_arp - print a debug message containing all the ARP packet details | 369 | * batadv_dbg_arp - print a debug message containing all the ARP packet details |
370 | * @bat_priv: the bat priv with all the soft interface information | 370 | * @bat_priv: the bat priv with all the soft interface information |
371 | * @skb: ARP packet | 371 | * @skb: ARP packet |
372 | * @type: ARP type | ||
373 | * @hdr_size: size of the possible header before the ARP packet | 372 | * @hdr_size: size of the possible header before the ARP packet |
374 | * @msg: message to print together with the debugging information | 373 | * @msg: message to print together with the debugging information |
375 | */ | 374 | */ |
376 | static void batadv_dbg_arp(struct batadv_priv *bat_priv, struct sk_buff *skb, | 375 | static void batadv_dbg_arp(struct batadv_priv *bat_priv, struct sk_buff *skb, |
377 | u16 type, int hdr_size, char *msg) | 376 | int hdr_size, char *msg) |
378 | { | 377 | { |
379 | struct batadv_unicast_4addr_packet *unicast_4addr_packet; | 378 | struct batadv_unicast_4addr_packet *unicast_4addr_packet; |
380 | struct batadv_bcast_packet *bcast_pkt; | 379 | struct batadv_bcast_packet *bcast_pkt; |
@@ -441,7 +440,7 @@ static void batadv_dbg_arp(struct batadv_priv *bat_priv, struct sk_buff *skb, | |||
441 | #else | 440 | #else |
442 | 441 | ||
443 | static void batadv_dbg_arp(struct batadv_priv *bat_priv, struct sk_buff *skb, | 442 | static void batadv_dbg_arp(struct batadv_priv *bat_priv, struct sk_buff *skb, |
444 | u16 type, int hdr_size, char *msg) | 443 | int hdr_size, char *msg) |
445 | { | 444 | { |
446 | } | 445 | } |
447 | 446 | ||
@@ -983,8 +982,7 @@ bool batadv_dat_snoop_outgoing_arp_request(struct batadv_priv *bat_priv, | |||
983 | if (type != ARPOP_REQUEST) | 982 | if (type != ARPOP_REQUEST) |
984 | goto out; | 983 | goto out; |
985 | 984 | ||
986 | batadv_dbg_arp(bat_priv, skb, type, hdr_size, | 985 | batadv_dbg_arp(bat_priv, skb, hdr_size, "Parsing outgoing ARP REQUEST"); |
987 | "Parsing outgoing ARP REQUEST"); | ||
988 | 986 | ||
989 | ip_src = batadv_arp_ip_src(skb, hdr_size); | 987 | ip_src = batadv_arp_ip_src(skb, hdr_size); |
990 | hw_src = batadv_arp_hw_src(skb, hdr_size); | 988 | hw_src = batadv_arp_hw_src(skb, hdr_size); |
@@ -1075,8 +1073,7 @@ bool batadv_dat_snoop_incoming_arp_request(struct batadv_priv *bat_priv, | |||
1075 | ip_src = batadv_arp_ip_src(skb, hdr_size); | 1073 | ip_src = batadv_arp_ip_src(skb, hdr_size); |
1076 | ip_dst = batadv_arp_ip_dst(skb, hdr_size); | 1074 | ip_dst = batadv_arp_ip_dst(skb, hdr_size); |
1077 | 1075 | ||
1078 | batadv_dbg_arp(bat_priv, skb, type, hdr_size, | 1076 | batadv_dbg_arp(bat_priv, skb, hdr_size, "Parsing incoming ARP REQUEST"); |
1079 | "Parsing incoming ARP REQUEST"); | ||
1080 | 1077 | ||
1081 | batadv_dat_entry_add(bat_priv, ip_src, hw_src, vid); | 1078 | batadv_dat_entry_add(bat_priv, ip_src, hw_src, vid); |
1082 | 1079 | ||
@@ -1149,8 +1146,7 @@ void batadv_dat_snoop_outgoing_arp_reply(struct batadv_priv *bat_priv, | |||
1149 | if (type != ARPOP_REPLY) | 1146 | if (type != ARPOP_REPLY) |
1150 | return; | 1147 | return; |
1151 | 1148 | ||
1152 | batadv_dbg_arp(bat_priv, skb, type, hdr_size, | 1149 | batadv_dbg_arp(bat_priv, skb, hdr_size, "Parsing outgoing ARP REPLY"); |
1153 | "Parsing outgoing ARP REPLY"); | ||
1154 | 1150 | ||
1155 | hw_src = batadv_arp_hw_src(skb, hdr_size); | 1151 | hw_src = batadv_arp_hw_src(skb, hdr_size); |
1156 | ip_src = batadv_arp_ip_src(skb, hdr_size); | 1152 | ip_src = batadv_arp_ip_src(skb, hdr_size); |
@@ -1195,8 +1191,7 @@ bool batadv_dat_snoop_incoming_arp_reply(struct batadv_priv *bat_priv, | |||
1195 | if (type != ARPOP_REPLY) | 1191 | if (type != ARPOP_REPLY) |
1196 | goto out; | 1192 | goto out; |
1197 | 1193 | ||
1198 | batadv_dbg_arp(bat_priv, skb, type, hdr_size, | 1194 | batadv_dbg_arp(bat_priv, skb, hdr_size, "Parsing incoming ARP REPLY"); |
1199 | "Parsing incoming ARP REPLY"); | ||
1200 | 1195 | ||
1201 | hw_src = batadv_arp_hw_src(skb, hdr_size); | 1196 | hw_src = batadv_arp_hw_src(skb, hdr_size); |
1202 | ip_src = batadv_arp_ip_src(skb, hdr_size); | 1197 | ip_src = batadv_arp_ip_src(skb, hdr_size); |