aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv/send.c
diff options
context:
space:
mode:
authorSimon Wunderlich <siwu@hrz.tu-chemnitz.de>2010-12-29 11:15:19 -0500
committerSven Eckelmann <sven@narfation.org>2011-01-31 08:57:09 -0500
commit74ef115359f5beb565baddfb250f264d9177c108 (patch)
treeaec2314d58563f49438aee5eeeb94531d1815c15 /net/batman-adv/send.c
parentae361ce19fa135035c6b83ac1f07090b72fd4b8f (diff)
batman-adv: remove unused parameters
Some function parameters are obsolete now and can be removed. Reported-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv/send.c')
-rw-r--r--net/batman-adv/send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c
index b89b9f7709ae..77f82972144e 100644
--- a/net/batman-adv/send.c
+++ b/net/batman-adv/send.c
@@ -49,7 +49,7 @@ static unsigned long own_send_time(struct bat_priv *bat_priv)
49} 49}
50 50
51/* when do we schedule a forwarded packet to be sent */ 51/* when do we schedule a forwarded packet to be sent */
52static unsigned long forward_send_time(struct bat_priv *bat_priv) 52static unsigned long forward_send_time(void)
53{ 53{
54 return jiffies + msecs_to_jiffies(random32() % (JITTER/2)); 54 return jiffies + msecs_to_jiffies(random32() % (JITTER/2));
55} 55}
@@ -356,7 +356,7 @@ void schedule_forward_packet(struct orig_node *orig_node,
356 else 356 else
357 batman_packet->flags &= ~DIRECTLINK; 357 batman_packet->flags &= ~DIRECTLINK;
358 358
359 send_time = forward_send_time(bat_priv); 359 send_time = forward_send_time();
360 add_bat_packet_to_list(bat_priv, 360 add_bat_packet_to_list(bat_priv,
361 (unsigned char *)batman_packet, 361 (unsigned char *)batman_packet,
362 sizeof(struct batman_packet) + hna_buff_len, 362 sizeof(struct batman_packet) + hna_buff_len,