batman-adv: remove unused variable
Commit Message
Actually unicast_4addr_packet in interface_rx() is set but never used and
therefore can be safely be removed.
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
---
soft-interface.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
Comments
On Monday, February 27, 2012 20:36:40 Antonio Quartulli wrote:
> Actually unicast_4addr_packet in interface_rx() is set but never used and
> therefore can be safely be removed.
Applied in revision 4ca2a01.
Thanks,
Marek
@@ -259,7 +259,6 @@ void interface_rx(struct net_device *soft_iface,
int hdr_size)
{
struct bat_priv *bat_priv = netdev_priv(soft_iface);
- struct unicast_4addr_packet *unicast_4addr_packet;
struct ethhdr *ethhdr;
struct vlan_ethhdr *vhdr;
short vid __maybe_unused = -1;
@@ -268,8 +267,6 @@ void interface_rx(struct net_device *soft_iface,
if (!pskb_may_pull(skb, hdr_size))
goto dropped;
- unicast_4addr_packet = (struct unicast_4addr_packet *)skb->data;
-
if (dat_snoop_incoming_arp_request(bat_priv, skb, hdr_size))
goto out;