]> git.baikalelectronics.ru Git - kernel.git/commit
devres: No need to call remove_nodes() when there none present
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 17 May 2021 12:29:45 +0000 (15:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Jun 2021 15:14:36 +0000 (17:14 +0200)
commit49bf51664a036bc677dcf0242088ac18bd5a0e3a
treeb8424089754650db68bf8f4e6bd9944d7865b815
parent05aaef3410546c4384597504bd5f5f4a49d591cf
devres: No need to call remove_nodes() when there none present

If a list of devres nodes is empty, no need to call remove_nodes().

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