Thread (1 message) 1 message, 1 author, 2023-01-04

Re: [PATCH] drivers/misc/ocxl/context.c : eliminate unnecessary type conversions

From: Andrew Donnellan <hidden>
Date: 2023-01-04 07:07:12
Also in: lkml

On Mon, 2022-12-26 at 10:51 +0800, Dong Chuanjian wrote:
remove unnecessary void* type casting.

Signed-off-by: Dong Chuanjian <redacted>

[+linuxppc-dev, which was misspelled in the original email]

Acked-by: Andrew Donnellan <redacted>
quoted hunk
diff --git a/drivers/misc/ocxl/context.c
b/drivers/misc/ocxl/context.c
index 9eb0d93b01c6..d6e081812300 100644
--- a/drivers/misc/ocxl/context.c
+++ b/drivers/misc/ocxl/context.c
@@ -55,7 +55,7 @@ EXPORT_SYMBOL_GPL(ocxl_context_alloc);
  */
 static void xsl_fault_error(void *data, u64 addr, u64 dsisr)
 {
-       struct ocxl_context *ctx = (struct ocxl_context *) data;
+       struct ocxl_context *ctx = data;
 
        mutex_lock(&ctx->xsl_error_lock);
        ctx->xsl_error.addr = addr;
-- 
Andrew Donnellan    OzLabs, ADL Canberra
ajd@linux.ibm.com   IBM Australia Limited
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help