Skip to contentSkip to conversation

cxl/mbox: Use local cxl_device_state variable

PATCH Superseded Jonathan Cameron 1 participant 1 message Feb 22, 2023 CXL

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 cxl/mbox: Use local cxl_device_state variable

Given we have cxlds as a local variable, use that rather than getting it again from cxlmd.

--

v3: Separated from the series CXL: Standalone switch CCI driver after Dave and Ira both pointed out we might as well send this tidy up separately.

---
 drivers/cxl/core/mbox.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/cxl/core/mbox.c +1 -1
index f2addb457172..830e4714ffd1 100644
@@ -548,7 +548,7 @@ int cxl_send_cmd(struct cxl_memdev *cxlmd, struct cxl_send_command __user *s)
 	if (copy_from_user(&send, s, sizeof(send)))
 		return -EFAULT;
 
-	rc = cxl_validate_cmd_from_user(&mbox_cmd, cxlmd->cxlds, &send);
+	rc = cxl_validate_cmd_from_user(&mbox_cmd, cxlds, &send);
 	if (rc)
 		return rc;
 
Signature · 1 line
2.37.2