Skip to contentSkip to conversation

cxl/acpi: Drop the root decoder target_type assignment

PATCH In review Davidlohr Bueso 2 participants 2 messages Nov 6 – Nov 7 CXL

lore
Share & tools
lore

Davidlohr Bueso

author maintainer
#0 lore raw

PATCH 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.

---
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
index b7ce6b59c680..740e229e1c4c 100644
@@ -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
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines · Davidlohr Bueso

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.