summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGregory Price <gourry@gourry.net>2026-03-06 16:47:41 +0000
committerDave Jiang <dave.jiang@intel.com>2026-03-16 16:31:39 -0700
commitd537d953c47866bafc89feb66d8ef34baf17659a (patch)
treeb8fc5d27174f095b949aed28f73d604206b2dfaa /tools/perf/scripts/python
parent58f28930c7fb0e24cdf2972a9c3b7c91aeef4539 (diff)
cxl/pci: Remove redundant cxl_pci_find_port() call
Remove the redundant port lookup from cxl_rcrb_get_comp_regs() and use the dport parameter directly. The caller has already validated the port is non-NULL before invoking this function, and dport is given as a param. This is simpler than getting dport in the callee and return the pointer to the caller what would require more changes. Signed-off-by: Gregory Price <gourry@gourry.net> Reviewed-by: Alejandro Lucero <alucerop@amd.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Reviewed-by: Davidlohr Bueso <dave@stgolabs.net> Link: https://patch.msgid.link/20260306164741.3796372-5-alejandro.lucero-palau@amd.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions