summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-03-29 18:12:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-04-05 13:18:22 +0200
commit73c9342656fa610c2358ea7b867187104647f497 (patch)
tree2bfce98c12949e9096a1c5d97e074e18cf0c1ab8 /arch
parent06ad93c328dcebdc13df5ec6dc8a5142f4a3f1da (diff)
downloadlinux-stable-73c9342656fa610c2358ea7b867187104647f497.tar.gz
linux-stable-73c9342656fa610c2358ea7b867187104647f497.tar.bz2
linux-stable-73c9342656fa610c2358ea7b867187104647f497.zip
software node: Deduplicate code in fwnode_create_software_node()
Deduplicate conditional and assignment in fwnode_create_software_node(), i.e. parent is checked in two out of three cases and parent software node is assigned by to_swnode() call. Reviewed-by: Daniel Scally <djrscally@gmail.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20210329151207.36619-3-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions