atom feed2 messages in org.kernel.vger.kernel-janitorsRe: [PATCH 2/5] drivers/net: drop red...
FromSent OnAttachments
Julia LawallMar 9, 2010 1:13 pm 
David MillerMar 15, 2010 3:46 pm 
Subject:Re: [PATCH 2/5] drivers/net: drop redundant memset
From:David Miller (dav@davemloft.net)
Date:Mar 15, 2010 3:46:40 pm
List:org.kernel.vger.kernel-janitors

From: Julia Lawall <jul@diku.dk> Date: Tue, 9 Mar 2010 22:14:11 +0100 (CET)

From: Julia Lawall <jul@diku.dk>

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>

Applied, thanks!