]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/batman-adv/originator.h
MIPS: Avoid overoptimization by GCC.
[karo-tx-linux.git] / net / batman-adv / originator.h
index 286bf743e76a34e0519d9ba6c9c871c3b3295105..7df48fa7669dd0ac173a51bafe3d6538fb049e4b 100644 (file)
@@ -68,7 +68,6 @@ batadv_orig_hash_find(struct batadv_priv *bat_priv, const void *data)
 {
        struct batadv_hashtable *hash = bat_priv->orig_hash;
        struct hlist_head *head;
-       struct hlist_node *node;
        struct batadv_orig_node *orig_node, *orig_node_tmp = NULL;
        int index;
 
@@ -79,7 +78,7 @@ batadv_orig_hash_find(struct batadv_priv *bat_priv, const void *data)
        head = &hash->table[index];
 
        rcu_read_lock();
-       hlist_for_each_entry_rcu(orig_node, node, head, hash_entry) {
+       hlist_for_each_entry_rcu(orig_node, head, hash_entry) {
                if (!batadv_compare_eth(orig_node, data))
                        continue;