powerpc/numa: Use of_get_next_parent to simplify code
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sun, 11 Oct 2015 20:23:27 +0000 (22:23 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 15 Oct 2015 09:32:00 +0000 (20:32 +1100)
commit1def37586fb1f3bbbedeaa64bf047595958dfc66
tree25e7ac8961c2272dc8a7a700a6dd53fbcfc51716
parent5fab1d1cb18d27d1a2a5f110e0955a1b3c497013
powerpc/numa: Use of_get_next_parent to simplify code

of_get_next_parent can be used to simplify the while() loop and
avoid the need of a temp variable.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/numa.c