Skip to content

Commit b776976

Browse files
T-Xsimonwunderlich
authored andcommitted
batman-adv: Remove unnecessary lockdep in batadv_mcast_mla_list_free
batadv_mcast_mla_list_free() just frees some leftovers of a local feast in batadv_mcast_mla_update(). No lockdep needed as it has nothing to do with bat_priv->mcast.mla_list. Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue> Signed-off-by: Sven Eckelmann <sven@narfation.org> Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
1 parent cbfc16d commit b776976

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

‎net/batman-adv/multicast.c‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -231,19 +231,15 @@ static int batadv_mcast_mla_bridge_get(struct net_device *dev,
231231

232232
/**
233233
* batadv_mcast_mla_list_free - free a list of multicast addresses
234-
* @bat_priv: the bat priv with all the soft interface information
235234
* @mcast_list: the list to free
236235
*
237236
* Removes and frees all items in the given mcast_list.
238237
*/
239-
static void batadv_mcast_mla_list_free(struct batadv_priv *bat_priv,
240-
struct hlist_head *mcast_list)
238+
static void batadv_mcast_mla_list_free(struct hlist_head *mcast_list)
241239
{
242240
struct batadv_hw_addr *mcast_entry;
243241
struct hlist_node *tmp;
244242

245-
lockdep_assert_held(&bat_priv->tt.commit_lock);
246-
247243
hlist_for_each_entry_safe(mcast_entry, tmp, mcast_list, list) {
248244
hlist_del(&mcast_entry->list);
249245
kfree(mcast_entry);
@@ -560,7 +556,7 @@ void batadv_mcast_mla_update(struct batadv_priv *bat_priv)
560556
batadv_mcast_mla_tt_add(bat_priv, &mcast_list);
561557

562558
out:
563-
batadv_mcast_mla_list_free(bat_priv, &mcast_list);
559+
batadv_mcast_mla_list_free(&mcast_list);
564560
}
565561

566562
/**

0 commit comments

Comments
 (0)