Skip to content

Commit

Permalink
mac820154: rename sdata next to tmp
Browse files Browse the repository at this point in the history
This patch is just a cleanup to name the temporary variable for
protected list for each loop as tmp.

Signed-off-by: Alexander Aring <[email protected]>
Signed-off-by: Marcel Holtmann <[email protected]>
  • Loading branch information
alexaring authored and holtmann committed Nov 12, 2014
1 parent 592dfbf commit d14e1c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/mac802154/iface.c
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,9 @@ void ieee802154_if_remove(struct ieee802154_sub_if_data *sdata)

void ieee802154_remove_interfaces(struct ieee802154_local *local)
{
struct ieee802154_sub_if_data *sdata, *next;
struct ieee802154_sub_if_data *sdata, *tmp;

list_for_each_entry_safe(sdata, next, &local->interfaces, list) {
list_for_each_entry_safe(sdata, tmp, &local->interfaces, list) {
mutex_lock(&sdata->local->iflist_mtx);
list_del(&sdata->list);
mutex_unlock(&sdata->local->iflist_mtx);
Expand Down

0 comments on commit d14e1c7

Please sign in to comment.