[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <97f07422a32799ec1a09356430b03faef73d3cdd.camel@linux.ibm.com>
Date: Wed, 04 Jan 2023 18:06:46 +1100
From: Andrew Donnellan <ajd@...ux.ibm.com>
To: Dong Chuanjian <chuanjian@...china.com>, fbarrat@...ux.ibm.com,
arnd@...db.de, gregkh@...uxfoundation.org
Cc: linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] drivers/misc/ocxl/context.c : eliminate unnecessary
type conversions
On Mon, 2022-12-26 at 10:51 +0800, Dong Chuanjian wrote:
> remove unnecessary void* type casting.
>
> Signed-off-by: Dong Chuanjian <chuanjian@...china.com>
[+linuxppc-dev, which was misspelled in the original email]
Acked-by: Andrew Donnellan <ajd@...ux.ibm.com>
>
> 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@...ux.ibm.com IBM Australia Limited
Powered by blists - more mailing lists