diff options
author | Li Ming <ming.li@zohomail.com> | 2025-02-21 09:24:49 +0800 |
---|---|---|
committer | Dave Jiang <dave.jiang@intel.com> | 2025-03-14 14:37:47 -0700 |
commit | a58afda8bfd4a113295f0e12c0697c35a69614b2 (patch) | |
tree | c45fb5f2702bd8ebac5b4e9427bbdfce4ca3fd60 /scripts/gdb/linux/utils.py | |
parent | 3ad4f59f38965071e429ace93c75a94a2ede5456 (diff) |
cxl/memdev: cxl_memdev_ioctl() cleanup
In cxl_memdev_ioctl(), the down_read(&cxl_memdev_rwsem) and
up_read(&cxl_memdev_rwsem) can be replaced by a
guard(rwsem_read)(&cxl_memdev_rwsem), it helps to remove the open-coded
up_read(&cxl_memdev_rwsem). Besides, the local var 'rc' can be also
removed to make the code more cleaner.
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-4-ming.li@zohomail.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions