Re: [PATCH] powerpc/syscalls: Simplify do_mmap2()

2021-08-27 Thread Michael Ellerman
On Fri, 25 Jun 2021 10:58:33 + (UTC), Christophe Leroy wrote: > 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. > > > [...] Applied to powerpc/next. [1/1] powerpc/syscalls: Simplify

[PATCH] powerpc/syscalls: Simplify do_mmap2()

2021-06-25 Thread Christophe Leroy
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 --- arch/powerpc/kernel/syscalls.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --