diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c index 55691f6e97d6..594e5bf9e5f8 100644 --- a/drivers/cxl/core/region.c +++ b/drivers/cxl/core/region.c @@ -1527,8 +1527,6 @@ static struct cxl_region *devm_cxl_add_region(struct cxl_root_decoder *cxlrd, enum cxl_decoder_type type) { struct cxl_port *port = to_cxl_port(cxlrd->cxlsd.cxld.dev.parent); - struct cxl_decoder *cxld = &cxlrd->cxlsd.cxld; - struct cxl_region_params *p; struct cxl_region *cxlr; struct device *dev; int rc; @@ -1536,10 +1534,8 @@ static struct cxl_region *devm_cxl_add_region(struct cxl_root_decoder *cxlrd, cxlr = cxl_region_alloc(cxlrd, id); if (IS_ERR(cxlr)) return cxlr; - p = &cxlr->params; cxlr->mode = mode; cxlr->type = type; - p->interleave_granularity = cxld->interleave_granularity; dev = &cxlr->dev; rc = dev_set_name(dev, "region%d", id);