]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
misc: ocxl: context: Remove unnecessary (void*) conversions
authorLi zeming <zeming@nfschina.com>
Mon, 13 Nov 2023 01:15:43 +0000 (09:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Nov 2023 13:51:11 +0000 (13:51 +0000)
The ctx pointer does not need to cast the type.

Signed-off-by: Li zeming <zeming@nfschina.com>
Acked-by: Frederic Barrat <fbarrat@linux.ibm.com>
Acked-by: Andrew Donnellan <ajd@linux.ibm.com>
Link: https://lore.kernel.org/r/20231113011543.6940-1-zeming@nfschina.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/ocxl/context.c

index 7f83116ae11a670a1b97331d00cce8aa0db5bf31..cded7d1caf328eddda5fc3c44325d040f40037b7 100644 (file)
@@ -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;