aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Widawsky <[email protected]>2022-04-28 11:15:40 -0700
committerDan Williams <[email protected]>2022-07-09 16:21:19 -0700
commit04ed37a2baf957620970b4049b0390089da5ec17 (patch)
tree01e38ca636fd9745a44348a89bef1c552690986e
parentfe80f1ad593c84bf90299496b3f93ab998ba70ad (diff)
cxl/hdm: Use local hdm variable
Save a few characters and use the already initialized local variable. Signed-off-by: Ben Widawsky <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Alison Schofield <[email protected]> Reviewed-by: Adam Manzanares <[email protected]> Link: https://lore.kernel.org/r/165603872171.551046.913207574344536475.stgit@dwillia2-xfh Signed-off-by: Dan Williams <[email protected]>
-rw-r--r--drivers/cxl/core/hdm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cxl/core/hdm.c b/drivers/cxl/core/hdm.c
index bfc8ee876278..ba3d2d959c71 100644
--- a/drivers/cxl/core/hdm.c
+++ b/drivers/cxl/core/hdm.c
@@ -251,8 +251,7 @@ int devm_cxl_enumerate_decoders(struct cxl_hdm *cxlhdm)
return PTR_ERR(cxld);
}
- rc = init_hdm_decoder(port, cxld, target_map,
- cxlhdm->regs.hdm_decoder, i);
+ rc = init_hdm_decoder(port, cxld, target_map, hdm, i);
if (rc) {
put_device(&cxld->dev);
failed++;