]> www.infradead.org Git - linux.git/commitdiff
cxl/cdat: Remove redundant gp_port initialization
authorLi Ming <ming.li@zohomail.com>
Tue, 11 Feb 2025 06:20:54 +0000 (14:20 +0800)
committerDave Jiang <dave.jiang@intel.com>
Fri, 14 Mar 2025 22:00:55 +0000 (15:00 -0700)
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>
drivers/cxl/core/cdat.c

index bfba7f5019cf4cf46794f3e8540fb4bb0aa695c0..edb4f41eeacc64fa359b4e1c46909f247383c101 100644 (file)
@@ -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);
 
        /*