commit | 73c9342656fa610c2358ea7b867187104647f497 | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <[email protected]> | Mon Mar 29 18:12:04 2021 +0300 |
committer | Greg Kroah-Hartman <[email protected]> | Mon Apr 05 13:18:22 2021 +0200 |
tree | 2bfce98c12949e9096a1c5d97e074e18cf0c1ab8 | |
parent | 06ad93c328dcebdc13df5ec6dc8a5142f4a3f1da [diff] |
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 <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>