Skip to contentSkip to conversation

cxl/acpi: Drop the root decoder target_type assignment

PATCH Superseded Davidlohr Bueso 2 participants 2 messages Oct 28 CXL

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Davidlohr Bueso

author maintainer
#0 lore raw

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

---
 drivers/cxl/acpi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/cxl/acpi.c +0 -2
index b7ce6b59c680..740e229e1c4c 100644
@@ -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

maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 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.

Quoted 18 lines
---
 drivers/cxl/acpi.c | 1 -
 1 file changed, 1 deletion(-)
drivers/cxl/acpi.c +0 -2
index b7ce6b59c680..740e229e1c4c 100644
@@ -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