Re: [PATCH 1/2] powerpc/smp: Drop superfluous NULL check

2020-04-01 Thread Michael Ellerman
On Fri, 2020-03-13 at 11:20:19 UTC, Michael Ellerman wrote: > We don't need the NULL check of np, the result is the same because the > OF helpers cope with NULL, of_node_to_nid(NULL) == NUMA_NO_NODE (-1). > > Signed-off-by: Michael Ellerman Series applied to powerpc next.

Re: [PATCH 1/2] powerpc/smp: Drop superfluous NULL check

2020-03-13 Thread Srikar Dronamraju
* Michael Ellerman [2020-03-13 22:20:19]: > We don't need the NULL check of np, the result is the same because the > OF helpers cope with NULL, of_node_to_nid(NULL) == NUMA_NO_NODE (-1). > Looks good to me. Reviewed-by: Srikar Dronamraju > Signed-off-by: Michael Ellerman > --- >

[PATCH 1/2] powerpc/smp: Drop superfluous NULL check

2020-03-13 Thread Michael Ellerman
We don't need the NULL check of np, the result is the same because the OF helpers cope with NULL, of_node_to_nid(NULL) == NUMA_NO_NODE (-1). Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/smp.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git