Re: [PATCH net-next V2] drivers/net: Remove casts of void *

From: David Miller
Date: Fri Jun 17 2011 - 15:23:10 EST


From: Joe Perches <joe@xxxxxxxxxxx>
Date: Thu, 16 Jun 2011 22:08:06 -0700

> Unnecessary casts of void * clutter the code.
>
> These are the remainder casts after several specific
> patches to remove netdev_priv and dev_priv.
>
> Done via coccinelle script (and a little editing):
>
> $ cat cast_void_pointer.cocci
> @@
> type T;
> T *pt;
> void *pv;
> @@
>
> - pt = (T *)pv;
> + pt = pv;
>
> Signed-off-by: Joe Perches <joe@xxxxxxxxxxx>
> Acked-by: Sjur Brændeland <sjur.brandeland@xxxxxxxxxxxxxx>
> Acked-By: Chris Snook <chris.snook@xxxxxxxxx>
> Acked-by: Jon Mason <jdmason@xxxxxxxx>

Applied, thanks.
--
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/