cxl/acpi: Drop the root decoder target_type assignment
Davidlohr Bueso
maintainerPATCH v2 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]>
Reviewed-by Dave Jiang <[email protected]>
Signed-off-by Davidlohr Bueso <[email protected]>
---
Changes in v2:
- regenerate the patch, fixing hunk header
drivers/cxl/acpi.c | 1 - 1 file changed, 1 deletion(-)
drivers/cxl/acpi.c +0 -1
@@ -443,7 +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 ,
Signature · 1 line
2.39.5
Quoted 5 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.
Reviewed-by Alison Schofield <[email protected]>