cxl/acpi: Drop the root decoder target_type assignment
Davidlohr Bueso
maintainerPATCH 1/1 cxl/acpi: Drop the root decoder target_type assignment
A root decoder's target_type is never consumed. The field is already initialized to CXL_DECODER_HOSTONLYMEM by cxl_decoder_init(). Drop the redundant assignment, which only suggests the root decoder's type matters.
Suggested-by Alison Schofield <[email protected]>
Signed-off-by Davidlohr Bueso <[email protected]>
--- drivers/cxl/acpi.c | 1 - 1 file changed, 1 deletion(-)
drivers/cxl/acpi.c +0 -2
@@ -443,8 +443,6 @@ static int __cxl_parse_cfmws(struct acpi_cedt_cfmws *cfmws, cxld = &cxlrd->cxlsd.cxld; cxld->flags =cfmws_to_decoder_flags (cfmws->restrictions); - cxld->target_type =CXL_DECODER_HOSTONLYMEM ; cxld->hpa_range = (struct range ) { .start = cfmws->base_hpa, .end = cfmws->base_hpa + cfmws->window_size -1 , --
2.39.5
Quoted 7 lines · Davidlohr Bueso
A root decoder's
target_typeis never consumed. The field is already initialized toCXL_DECODER_HOSTONLYMEMbycxl_decoder_init(). Drop the redundant assignment, which only suggests the root decoder's type matters.Suggested-by Alison Schofield <[email protected]>Signed-off-by Davidlohr Bueso <[email protected]>
Reviewed-by Dave Jiang <[email protected]>
Quoted 18 lines
--- drivers/cxl/acpi.c | 1 - 1 file changed, 1 deletion(-)drivers/cxl/acpi.c +0
-2@@ -443,8 +443,6 @@ static int __cxl_parse_cfmws(struct acpi_cedt_cfmws *cfmws, cxld = &cxlrd->cxlsd.cxld; cxld->flags =cfmws_to_decoder_flags (cfmws->restrictions); - cxld->target_type =CXL_DECODER_HOSTONLYMEM ; cxld->hpa_range = (struct range ) { .start = cfmws->base_hpa, .end = cfmws->base_hpa + cfmws->window_size -1 , --2.39.5