From: Rafael J. Wysocki Date: Tue, 6 Aug 2013 23:22:08 +0000 (+0200) Subject: ACPI: Use list_for_each_entry() in acpi_unbind_one() X-Git-Tag: v3.12-rc1~178^2~11^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e3327837c180781960188563b4e4d5c004c2b29;p=pandora-kernel.git ACPI: Use list_for_each_entry() in acpi_unbind_one() 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 list_for_each_entry() instead and make the code slightly more straightforward. Signed-off-by: Rafael J. Wysocki Acked-by: Toshi Kani Acked-by: Yasuaki Ishimatsu --- Reading git-diff-tree failed