Re: [PATCH 2/5] drivers/net: drop redundant memset
From: David Miller
Date: Mon Mar 15 2010 - 18:47:18 EST
From: Julia Lawall <julia@xxxxxxx>
Date: Tue, 9 Mar 2010 22:14:11 +0100 (CET)
> From: Julia Lawall <julia@xxxxxxx>
>
> The region set by the call to memset is immediately overwritten by the
> subsequent call to memcpy.
>
> The semantic patch that makes this change is as follows:
> (http://coccinelle.lip6.fr/)
>
> // <smpl>
> @@
> expression e1,e2,e3,e4;
> @@
>
> - memset(e1,e2,e3);
> memcpy(e1,e4,e3);
> // </smpl>
>
> Signed-off-by: Julia Lawall <julia@xxxxxxx>
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/