Skip to content

Commit e0feac2

Browse files
MingLi-4davejiang
authored andcommitted
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>
1 parent 16ca2f5 commit e0feac2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/cxl/core/cdat.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,6 @@ static int cxl_endpoint_gather_bandwidth(struct cxl_region *cxlr,
658658
if (IS_ERR(perf))
659659
return PTR_ERR(perf);
660660

661-
gp_port = to_cxl_port(parent_port->dev.parent);
662661
*gp_is_root = is_cxl_root(gp_port);
663662

664663
/*

0 commit comments

Comments
 (0)