]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/lib/sstep: use truncate_if_32bit()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 21 Jan 2022 08:06:38 +0000 (08:06 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 12 Feb 2022 11:47:43 +0000 (22:47 +1100)
commit5c4efd925facbae92cde54e9fe2e62177d6199ae
tree1804bc30780a8a64ce7e6120fea58228eca2c756
parentedb9229952fa706991b079fc93f2b0bbdbae0052
powerpc/lib/sstep: use truncate_if_32bit()

Use truncate_if_32bit() when possible instead of open coding.

truncate_if_32bit() returns an unsigned long, so don't use it when
a signed value is expected.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/7e1c07123f13156d4a27991a2e2694fb584bc068.1642752375.git.christophe.leroy@csgroup.eu
arch/powerpc/lib/sstep.c