summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Ming <ming.li@zohomail.com>2025-02-11 09:20:54 +0300
committerDave Jiang <dave.jiang@intel.com>2025-03-15 01:00:55 +0300
commite0feac20d150949dc8b74c1c5998dea70d19bf35 (patch)
tree53076ddb4d661441b758fbd20e3d673fc1d3bae0
parent16ca2f5431ee7c003ae3ba3b0c4d4ddc57670b44 (diff)
downloadlinux-e0feac20d150949dc8b74c1c5998dea70d19bf35.tar.xz
cxl/cdat: Remove redundant gp_port initialization
gp_port is already pointed to the grandparent port during its definition, remove a redundant code to let gp_port point to the grandparent port again. Signed-off-by: Li Ming <ming.li@zohomail.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Davidlohr Bueso <dave@stgolabs.net> Link: https://patch.msgid.link/20250211062054.300108-1-ming.li@zohomail.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
-rw-r--r--drivers/cxl/core/cdat.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/cxl/core/cdat.c b/drivers/cxl/core/cdat.c
index bfba7f5019cf..edb4f41eeacc 100644
--- a/drivers/cxl/core/cdat.c
+++ b/drivers/cxl/core/cdat.c
@@ -658,7 +658,6 @@ static int cxl_endpoint_gather_bandwidth(struct cxl_region *cxlr,
if (IS_ERR(perf))
return PTR_ERR(perf);
- gp_port = to_cxl_port(parent_port->dev.parent);
*gp_is_root = is_cxl_root(gp_port);
/*