public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
* [B.A.T.M.A.N.] [PATCH] batman-adv: Remove unused variable
@ 2013-02-06 16:37 Emil Goode
  2013-02-06 17:22 ` Antonio Quartulli
  0 siblings, 1 reply; 9+ messages in thread
From: Emil Goode @ 2013-02-06 16:37 UTC (permalink / raw)
  To: lindner_marek, siwu, ordex, davem
  Cc: Emil Goode, netdev, b.a.t.m.a.n, kernel-janitors, linux-kernel

The commit ed242d01 removed a node parameter from iterators.
This patch removes a hlist_node struct that is no longer used.

Sparse gives a warning:

net/batman-adv/originator.c:411:21: warning:
	unused variable ‘node_tmp’ [-Wunused-variable]

Signed-off-by: Emil Goode <emilgoode@gmail.com>
---
 net/batman-adv/originator.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/net/batman-adv/originator.c b/net/batman-adv/originator.c
index 43d0f89..96fb80b 100644
--- a/net/batman-adv/originator.c
+++ b/net/batman-adv/originator.c
@@ -408,7 +408,6 @@ int batadv_orig_seq_print_text(struct seq_file *seq, void *offset)
 	struct net_device *net_dev = (struct net_device *)seq->private;
 	struct batadv_priv *bat_priv = netdev_priv(net_dev);
 	struct batadv_hashtable *hash = bat_priv->orig_hash;
-	struct hlist_node *node_tmp;
 	struct hlist_head *head;
 	struct batadv_hard_iface *primary_if;
 	struct batadv_orig_node *orig_node;
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [B.A.T.M.A.N.] [PATCH] batman-adv: remove unused variable
@ 2012-02-27 12:36 Antonio Quartulli
  2012-02-28  5:50 ` Marek Lindner
  0 siblings, 1 reply; 9+ messages in thread
From: Antonio Quartulli @ 2012-02-27 12:36 UTC (permalink / raw)
  To: b.a.t.m.a.n

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(-)

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;
 
-- 
1.7.3.4


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2013-02-06 22:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-06 16:37 [B.A.T.M.A.N.] [PATCH] batman-adv: Remove unused variable Emil Goode
2013-02-06 17:22 ` Antonio Quartulli
2013-02-06 17:55   ` Emil Goode
2013-02-06 19:55     ` Antonio Quartulli
2013-02-06 21:59       ` Emil Goode
2013-02-06 22:10         ` Antonio Quartulli
2013-02-06 22:23           ` Dan Carpenter
  -- strict thread matches above, loose matches on Subject: below --
2012-02-27 12:36 [B.A.T.M.A.N.] [PATCH] batman-adv: remove " Antonio Quartulli
2012-02-28  5:50 ` Marek Lindner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox