]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd8a09ea8d31e429f3f5521224b3dcd23b2728fa1
tree25e7ac8961c2272dc8a7a700a6dd53fbcfc51716
parent31e40c0b62cbe86a8e004de186f7a169548d9382
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