Re: [PATCH v1 2/7] cxl/core: cxl_mem_sanitize() cleanup

From: Jonathan Cameron
Date: Tue Feb 11 2025 - 12:27:44 EST


On Tue, 11 Feb 2025 15:57:22 +0800
Li Ming <ming.li@xxxxxxxxxxxx> wrote:

> In cxl_mem_sanitize(), the down_read() and up_read() for
> cxl_region_rwsem can be simply replaced by a guard(rwsem_read), and the
> local variable 'rc' can be removed.
>
> Signed-off-by: Li Ming <ming.li@xxxxxxxxxxxx>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>