Re: [PATCH] selftests/mm: Drop redundant open() in mprotect_tests()

From: David Hildenbrand (Arm)

Date: Tue Aug 18 2026 - 04:26:13 EST


On 8/17/26 10:06, Hongfu Li wrote:
> From: Hongfu Li <lihongfu@xxxxxxxxxx>
>
> Remove duplicate open() for local pagemap_fd in mprotect_tests() that
> shadows the global pagemap_fd already opened in main(). The local fd
> is never used in the function.
>
> Signed-off-by: Hongfu Li <lihongfu@xxxxxxxxxx>
> ---

Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David