From: Ben Widawsky Date: Thu, 28 Apr 2022 18:15:40 +0000 (-0700) Subject: cxl/hdm: Use local hdm variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=04ed37a2baf957620970b4049b0390089da5ec17;p=linux.git cxl/hdm: Use local hdm variable Save a few characters and use the already initialized local variable. Signed-off-by: Ben Widawsky Reviewed-by: Jonathan Cameron Reviewed-by: Alison Schofield Reviewed-by: Adam Manzanares Link: https://lore.kernel.org/r/165603872171.551046.913207574344536475.stgit@dwillia2-xfh Signed-off-by: Dan Williams --- diff --git a/drivers/cxl/core/hdm.c b/drivers/cxl/core/hdm.c index bfc8ee876278c..ba3d2d959c717 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++;