diff options
author | 2025-02-21 09:24:50 +0800 | |
---|---|---|
committer | 2025-03-14 14:37:54 -0700 | |
commit | 16fe6ec4ac3d828b3976bd36e4d99af73f8e43d2 (patch) | |
tree | 5eac37d2156389534cab8243668f22188987062d /scripts/lib/kdoc/kdoc_re.py | |
parent | cxl/memdev: cxl_memdev_ioctl() cleanup (diff) | |
download | wireguard-linux-16fe6ec4ac3d828b3976bd36e4d99af73f8e43d2.tar.xz wireguard-linux-16fe6ec4ac3d828b3976bd36e4d99af73f8e43d2.zip |
cxl/core: Use guard() to drop the goto pattern of cxl_dpa_free()
cxl_dpa_free() has a goto pattern to call up_write() for cxl_dpa_rwsem,
it can be removed by using a guard() to replace the down_write() and
up_write().
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-5-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