batman-adv: remove unused variable

Message ID 1330346200-23727-1-git-send-email-ordex@autistici.org (mailing list archive)
State Accepted, archived
Commit 4ca2a01e057606b8d5c08bb53dd62f95ffaf446b
Headers

Commit Message

Antonio Quartulli Feb. 27, 2012, 12:36 p.m. UTC
  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

Marek Lindner Feb. 28, 2012, 5:50 a.m. UTC | #1
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
  

Patch

diff --git a/soft-interface.c b/soft-interface.c
index 8b68e01..92137af 100644
--- a/soft-interface.c
+++ b/soft-interface.c
@@ -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;