[PATCH 4/5] ACPI: Use list_for_each_entry() in acpi_unbind_one()

2013-08-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Since acpi_unbind_one() walks physical_node_list under the ACPI device object's physical_node_lock mutex and the walk may be terminated as soon as the matching entry has been found, it is not necessary to use list_for_each_safe() for that walk, so use

[PATCH 4/5] ACPI: Use list_for_each_entry() in acpi_unbind_one()

2013-08-05 Thread Rafael J. Wysocki
From: Rafael J. Wysocki rafael.j.wyso...@intel.com Since acpi_unbind_one() walks physical_node_list under the ACPI device object's physical_node_lock mutex and the walk may be terminated as soon as the matching entry has been found, it is not necessary to use list_for_each_safe() for that walk,