cxl/hdm: Use local hdm variable
authorBen Widawsky <bwidawsk@kernel.org>
Thu, 28 Apr 2022 18:15:40 +0000 (11:15 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sat, 9 Jul 2022 23:21:19 +0000 (16:21 -0700)
Save a few characters and use the already initialized local variable.

Signed-off-by: Ben Widawsky <bwidawsk@kernel.org>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Adam Manzanares <a.manzanares@samsung.com>
Link: https://lore.kernel.org/r/165603872171.551046.913207574344536475.stgit@dwillia2-xfh
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/hdm.c

index bfc8ee876278c9c19765780ab90495332157382a..ba3d2d959c717e6ff933cb8651c95179fd75d8b6 100644 (file)
@@ -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++;