Skip to contentSkip to conversation

batman-adv: Remove unused variable

PATCH In review Emil Goode 2 participants 2 messages Feb 6, 2013 – Feb 7, 2013

Subsystems (4)
lore
Share & tools
lore

Emil Goode

author
#0 lore raw

PATCH v2 1/1 batman-adv: Remove unused variable

The below commit removed one node parameter from iterators. ed242d01bbe22ea0877472db49b2752d866c921c
(hlist: drop the 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]

---
This patch applies to the linux-next tree.
v2: Added complete hash and message of dependant commit.

 net/batman-adv/originator.c |    1 -
 1 file changed, 1 deletion(-)
net/batman-adv/originator.c +0 -1
index 43d0f89..96fb80b 100644
@@ -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;
Signature · 1 line
1.7.10.4
Acked-by on v2 1/1
#1 lore raw
Quoted 4 lines · Emil Goode

The below commit removed one node parameter from iterators. ed242d01bbe22ea0877472db49b2752d866c921c
(hlist: drop the node parameter from iterators)

Quoted 8 lines

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]

Thanks Emil

Cheers,

Signature · 4 lines
Antonio Quartulli

..each of us alone is worth nothing..
Ernesto "Che" Guevara