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

From: Andrew Donnellan
Date: Wed Jan 04 2023 - 02:07:12 EST


On Mon, 2022-12-26 at 10:51 +0800, Dong Chuanjian wrote:
> remove unnecessary void* type casting.
>
> Signed-off-by: Dong Chuanjian <chuanjian@xxxxxxxxxxxx>


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

Acked-by: Andrew Donnellan <ajd@xxxxxxxxxxxxx>

>
> 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@xxxxxxxxxxxxx IBM Australia Limited