Himanshu Jha <[email protected]> wrote:

> casting to void pointer from any pointer type and vice-versa is done
> implicitly and therefore casting is not needed in such a case.
> 
> Done using Coccinellle.
> Semantic Patch used :
> 
> @r@
> expression x;
> void* e;
> type T;
> identifier f;
> @@
> 
> (
>   *((T *)e)
> |
>   ((T *)x)[...]
> |
>   ((T *)x)->f
> |
> - (T *)
>   e
> )
> 
> 
> Signed-off-by: Himanshu Jha <[email protected]>
> Signed-off-by: Kalle Valo <[email protected]>

Patch applied to ath-next branch of ath.git, thanks.

50c8cd44ed5f ath9k: remove cast to void pointer

-- 
https://patchwork.kernel.org/patch/9933585/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches

Reply via email to