[PATCH] misc: ocxl: afu_irq: Remove unnecessary (void*) conversions

Frederic Barrat fbarrat at linux.ibm.com
Tue Nov 14 23:53:07 AEDT 2023



On 13/11/2023 02:22, Li zeming wrote:
> The irq pointer does not need to cast the type.
> 
> Signed-off-by: Li zeming <zeming at nfschina.com>
> ---


Acked-by: Frederic Barrat <fbarrat at linux.ibm.com>

   Fred


>   drivers/misc/ocxl/afu_irq.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/misc/ocxl/afu_irq.c b/drivers/misc/ocxl/afu_irq.c
> index a06920b7e049a..36f7379b8e2de 100644
> --- a/drivers/misc/ocxl/afu_irq.c
> +++ b/drivers/misc/ocxl/afu_irq.c
> @@ -57,7 +57,7 @@ EXPORT_SYMBOL_GPL(ocxl_irq_set_handler);
>   
>   static irqreturn_t afu_irq_handler(int virq, void *data)
>   {
> -	struct afu_irq *irq = (struct afu_irq *) data;
> +	struct afu_irq *irq = data;
>   
>   	trace_ocxl_afu_irq_receive(virq);
>   


More information about the Linuxppc-dev mailing list