Re: [PATCH 1/1] x86/mm: Refine mmap syscall implementation
From: Christoph Hellwig
Date: Tue Dec 22 2020 - 09:52:24 EST
On Thu, Dec 17, 2020 at 01:26:48PM +0800, Adrian Huang wrote:
> From: Adrian Huang <ahuang12@xxxxxxxxxx>
>
> 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 one
actually improves the function a lot, so:
Reviewed-by: Christoph Hellwig <hch@xxxxxx>