From patchwork Mon Feb 27 12:36:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1569 Return-Path: Received: from latitanza.investici.org (latitanza.investici.org [82.94.249.234]) by open-mesh.org (Postfix) with ESMTPS id 01F6A60088E for ; Mon, 27 Feb 2012 13:37:47 +0100 (CET) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@autistici.org; dkim-adsp=pass Received: from [82.94.249.234] (latitanza [82.94.249.234]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id 4CB1B9825E; Mon, 27 Feb 2012 12:37:47 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 latitanza.investici.org 4CB1B9825E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1330346267; bh=bERWPSrk0/0e/v3nzSnP4IBmamikNS2Qy3vwjnOv32g=; h=From:To:Cc:Subject:Date:Message-Id; b=cXo1g2EBxSAjC2aencY16gowsQNkDUGxAmCs0kG1YQtxw9rJcj8loUJXrUDlCPD3i /+iXZRrV1hnoaLQXoEgitw+E8/MXkCd+/D1uDW2lUSvLziOpQ7sgyHqjoANir7HWjt S3/AOmPOtDi035htZ2KqID3/3VD6B1DgjM4QZRuk= From: Antonio Quartulli To: b.a.t.m.a.n@lists.open-mesh.org Date: Mon, 27 Feb 2012 13:36:40 +0100 Message-Id: <1330346200-23727-1-git-send-email-ordex@autistici.org> X-Mailer: git-send-email 1.7.3.4 Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: remove unused variable X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Feb 2012 12:37:48 -0000 Actually unicast_4addr_packet in interface_rx() is set but never used and therefore can be safely be removed. Signed-off-by: Antonio Quartulli --- soft-interface.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) 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;