Skip to content

Commit 7cefb14

Browse files
Linus LüssingMarek Lindner
authored andcommitted
batman-adv: Remove unused hdr_size variable in route_unicast_packet()
Signed-off-by: Linus Lüssing <linus.luessing@ascom.ch> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
1 parent e6c10f4 commit 7cefb14

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎net/batman-adv/routing.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,8 +1263,7 @@ static int check_unicast_packet(struct sk_buff *skb, int hdr_size)
12631263
return 0;
12641264
}
12651265

1266-
int route_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if,
1267-
int hdr_size)
1266+
int route_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if)
12681267
{
12691268
struct bat_priv *bat_priv = netdev_priv(recv_if->soft_iface);
12701269
struct orig_node *orig_node = NULL;
@@ -1365,7 +1364,7 @@ int recv_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if)
13651364
return NET_RX_SUCCESS;
13661365
}
13671366

1368-
return route_unicast_packet(skb, recv_if, hdr_size);
1367+
return route_unicast_packet(skb, recv_if);
13691368
}
13701369

13711370
int recv_ucast_frag_packet(struct sk_buff *skb, struct hard_iface *recv_if)
@@ -1398,7 +1397,7 @@ int recv_ucast_frag_packet(struct sk_buff *skb, struct hard_iface *recv_if)
13981397
return NET_RX_SUCCESS;
13991398
}
14001399

1401-
return route_unicast_packet(skb, recv_if, hdr_size);
1400+
return route_unicast_packet(skb, recv_if);
14021401
}
14031402

14041403

‎net/batman-adv/routing.h‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ void receive_bat_packet(struct ethhdr *ethhdr,
3030
void update_routes(struct bat_priv *bat_priv, struct orig_node *orig_node,
3131
struct neigh_node *neigh_node, unsigned char *hna_buff,
3232
int hna_buff_len);
33-
int route_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if,
34-
int hdr_size);
33+
int route_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if);
3534
int recv_icmp_packet(struct sk_buff *skb, struct hard_iface *recv_if);
3635
int recv_unicast_packet(struct sk_buff *skb, struct hard_iface *recv_if);
3736
int recv_ucast_frag_packet(struct sk_buff *skb, struct hard_iface *recv_if);

‎net/batman-adv/soft-interface.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ void interface_rx(struct net_device *soft_iface,
462462

463463
memcpy(unicast_packet->dest,
464464
bat_priv->softif_neigh->addr, ETH_ALEN);
465-
ret = route_unicast_packet(skb, recv_if, hdr_size);
465+
ret = route_unicast_packet(skb, recv_if);
466466
if (ret == NET_RX_DROP)
467467
goto dropped;
468468

0 commit comments

Comments
 (0)