cxl/mbox: Use local cxl_device_state variable
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.
Reviewed-by Dave Jiang <[email protected]>
Reviewed-by Ira Weiny <[email protected]>
Signed-off-by Jonathan Cameron <[email protected]>
--
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
@@ -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