aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAlexander Aring <alex.aring@gmail.com>2014-11-11 21:36:49 -0500
committerMarcel Holtmann <marcel@holtmann.org>2014-11-11 23:10:36 -0500
commitd14e1c71cfa870a2ed9f058a79b1c71decdaa9ba (patch)
tree41a48980a0db4ed2bfec78148ca64c08456b20b1 /net
parent592dfbfc72f5352437c883aa11ab579d10cdb595 (diff)
mac820154: rename sdata next to tmp
This patch is just a cleanup to name the temporary variable for protected list for each loop as tmp. Signed-off-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net')
-rw-r--r--net/mac802154/iface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac802154/iface.c b/net/mac802154/iface.c
index 8d90fbafda14..8b21d201fc97 100644
--- a/net/mac802154/iface.c
+++ b/net/mac802154/iface.c
@@ -538,9 +538,9 @@ void ieee802154_if_remove(struct ieee802154_sub_if_data *sdata)
538 538
539void ieee802154_remove_interfaces(struct ieee802154_local *local) 539void ieee802154_remove_interfaces(struct ieee802154_local *local)
540{ 540{
541 struct ieee802154_sub_if_data *sdata, *next; 541 struct ieee802154_sub_if_data *sdata, *tmp;
542 542
543 list_for_each_entry_safe(sdata, next, &local->interfaces, list) { 543 list_for_each_entry_safe(sdata, tmp, &local->interfaces, list) {
544 mutex_lock(&sdata->local->iflist_mtx); 544 mutex_lock(&sdata->local->iflist_mtx);
545 list_del(&sdata->list); 545 list_del(&sdata->list);
546 mutex_unlock(&sdata->local->iflist_mtx); 546 mutex_unlock(&sdata->local->iflist_mtx);