Re: [PATCH v2 3/6] software node: Deduplicate code in fwnode_create_software_node()

2021-03-29 Thread Daniel Scally
Hi Andy On 29/03/2021 16:12, Andy Shevchenko wrote: > 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. > > Signed-off-by: Andy Shevchenko Reviewed-by: Daniel Sc

[PATCH v2 3/6] software node: Deduplicate code in fwnode_create_software_node()

2021-03-29 Thread Andy Shevchenko
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. Signed-off-by: Andy Shevchenko --- v2: no changes drivers/base/swnode.c | 17 - 1 file changed, 8 in