driver core: Add a comment to set_primary_fwnode() on nullifying
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 23 Mar 2023 18:26:40 +0000 (20:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Mar 2023 06:26:32 +0000 (08:26 +0200)
commit2f9e87f5a2941b259336c7ea6c5a1499ede4554a
tree734a37ec9e3eb1d2d62df23efa71c624a2862b5b
parentcf34b880a66e3581300b997df25a7c12f7cfe7d7
driver core: Add a comment to set_primary_fwnode() on nullifying

Explain what parent && fn == parent->fwnode conditional does.
With this refactor the code a bit.

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