diff options
author | 2025-02-21 09:24:52 +0800 | |
---|---|---|
committer | 2025-03-14 14:46:32 -0700 | |
commit | 9e7b7ab5af69aaa5cd027656529663407da61e6f (patch) | |
tree | a0da1fd8e77c327efc9a15434f6bc84b5174a1f1 /scripts/lib/kdoc/kdoc_re.py | |
parent | cxl/core: Use guard() to drop goto pattern of cxl_dpa_alloc() (diff) | |
download | wireguard-linux-9e7b7ab5af69aaa5cd027656529663407da61e6f.tar.xz wireguard-linux-9e7b7ab5af69aaa5cd027656529663407da61e6f.zip |
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>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions