]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/syscalls: Simplify do_mmap2()
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Fri, 25 Jun 2021 10:58:33 +0000 (10:58 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Aug 2021 03:35:48 +0000 (13:35 +1000)
commite48318e2a24eb24bce75bbf3e76acf64fdca7a47
tree5940a3b352fbeeaaba99662a95e3419b2c9053c7
parent4bd9a0861a533ff0d48827bb168448c1fc08e74a
powerpc/syscalls: Simplify do_mmap2()

When shift is nul, operations remain valid so no test needed.

And 'ret' is unnecessary.

And use IS_ALIGNED() to check alignment, that's more clear.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/373ec500f386374bc5735007df3d3869eac47be1.1624618701.git.christophe.leroy@csgroup.eu
arch/powerpc/kernel/syscalls.c