Re: [PATCH 1/1] x86/mm: Refine mmap syscall implementation

2020-12-22 Thread Christoph Hellwig
On Thu, Dec 17, 2020 at 01:26:48PM +0800, Adrian Huang wrote: > From: Adrian Huang > > It is unnecessary to use the local variable 'error' in the mmap > syscall implementation function, so use the return statement > instead of it. I'm normally not a fan of standalone cleanup patches, but this on

[PATCH 1/1] x86/mm: Refine mmap syscall implementation

2020-12-16 Thread Adrian Huang
From: Adrian Huang It is unnecessary to use the local variable 'error' in the mmap syscall implementation function, so use the return statement instead of it. Signed-off-by: Adrian Huang --- arch/x86/kernel/sys_x86_64.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git