]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cxl/region: Drop goto pattern in cxl_dax_region_alloc()
authorLi Ming <ming.li@zohomail.com>
Fri, 21 Feb 2025 01:24:52 +0000 (09:24 +0800)
committerDave Jiang <dave.jiang@intel.com>
Fri, 14 Mar 2025 21:46:32 +0000 (14:46 -0700)
commit9e7b7ab5af69aaa5cd027656529663407da61e6f
treea0da1fd8e77c327efc9a15434f6bc84b5174a1f1
parenta81ebe7d19b6fdc6de0159878fbed9945120813e
cxl/region: Drop goto pattern in cxl_dax_region_alloc()

In cxl_dax_region_alloc(), there is a goto pattern to release the rwsem
cxl_region_rwsem when the function returns, the down_read() and up_read
can be replaced by a guard(rwsem_read) then the goto pattern can be
removed.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Acked-by: Davidlohr Bueso <dave@stgolabs.net>
Signed-off-by: Li Ming <ming.li@zohomail.com>
Link: https://patch.msgid.link/20250221012453.126366-7-ming.li@zohomail.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/region.c