powerpc/smp: Drop superfluous NULL check
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 13 Mar 2020 11:20:19 +0000 (22:20 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 26 Mar 2020 14:15:09 +0000 (01:15 +1100)
commit4b4d181d63518334070a877ba789211bde77da9e
tree6a9e66bde3f96f8172420accd4485b480193b9b4
parent65de8bb2b7d0d4f5ac3a54aa1f16d36320a4b6ab
powerpc/smp: Drop superfluous NULL check

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 <mpe@ellerman.id.au>
Reviewed-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200313112020.28235-1-mpe@ellerman.id.au
arch/powerpc/kernel/smp.c