Skip to contentSkip to conversation

batman-adv: Remove unused variable in batadv_tt_local_set_flags

PATCH Applied Sven Eckelmann 2 participants 2 messages Dec 17, 2016 – Jan 3, 2017 Batman advanced

lore
Share & tools
lore

Sven Eckelmann

author maintainer
#0 lore raw

PATCH 1/1 batman-adv: Remove unused variable in batadv_tt_local_set_flags

---
 net/batman-adv/translation-table.c | 2 --
 1 file changed, 2 deletions(-)
net/batman-adv/translation-table.c +0 -2
index 30ecbfb4..367e88fe 100644
@@ -3714,7 +3714,6 @@ static void batadv_tt_local_set_flags(struct batadv_priv *bat_priv, u16 flags,
 {
 	struct batadv_hashtable *hash = bat_priv->tt.local_hash;
 	struct batadv_tt_common_entry *tt_common_entry;
-	u16 changed_num = 0;
 	struct hlist_head *head;
 	u32 i;
 
@@ -3736,7 +3735,6 @@ static void batadv_tt_local_set_flags(struct batadv_priv *bat_priv, u16 flags,
 					continue;
 				tt_common_entry->flags &= ~flags;
 			}
-			changed_num++;
 
 			if (!count)
 				continue;
Signature · 1 line
2.11.0