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>
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);