]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cxl/feature: Remove redundant code of get supported features
authorLi Ming <ming.li@zohomail.com>
Fri, 16 May 2025 14:32:20 +0000 (22:32 +0800)
committerDave Jiang <dave.jiang@intel.com>
Mon, 19 May 2025 15:58:04 +0000 (08:58 -0700)
commit6eed708a5693709ff0d4dd8512b6934be30d4283
treeefffe24302e0f553facb9b59d18990ea04435323
parent2c5975498e55ec261dfe715199979784e24895bb
cxl/feature: Remove redundant code of get supported features

In cxlctl_get_supported_features(), there is a code block that handles
the case where the requested is equal to 0. But the code following the
code block can also handle this situation. So the code block is not
needed.

Signed-off-by: Li Ming <ming.li@zohomail.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://patch.msgid.link/20250516143220.35302-1-ming.li@zohomail.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/features.c