Re: [PATCH net-next 1/7] altera: Remove casts of pointer to same type

From: Vince Bridgers
Date: Mon Mar 24 2014 - 19:37:33 EST


Hi Joe, thanks for the patch.

On Mon, Mar 24, 2014 at 3:15 PM, Joe Perches <joe@xxxxxxxxxxx> wrote:
> Casting a pointer to a pointer of the same type is pointless,
> so remove these unnecessary casts.
>
> Done via coccinelle script:
>
> $ cat typecast_2.cocci
> @@
> type T;
> T *foo;
> @@
>
> - (T *)foo
> + foo
>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
> ---

Acked-by: Vince Bridgers <vbridgers2013@xxxxxxxxx>

All the best,

Vince
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/