devres: Use list_for_each_safe_from() in remove_nodes()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 May 2021 12:29:44 +0000 (15:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jun 2021 15:14:36 +0000 (17:14 +0200)
commitc3cd0ff7aa18a60229134fb8e467d5e1d92abec3
tree4ef74a79ca29668f9b64916214bdb5e894560fc9
parentbbc8f3e79e9e35469ac87b0b3329729afc715885
devres: Use list_for_each_safe_from() in remove_nodes()

The remove_nodes() open codes the list_for_each_safe_from().
Replace it by a generic macro.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210517122946.53161-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/devres.c