[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100315.154714.23695928.davem@davemloft.net>
Date: Mon, 15 Mar 2010 15:47:14 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: julia@...u.dk
Cc: ram.vepa@...erion.com, santosh.rastapur@...erion.com,
sivakumar.subramani@...erion.com, sreenivasa.honnur@...erion.com,
anil.murthy@...erion.com, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org
Subject: Re: [PATCH 2/5] drivers/net: drop redundant memset
From: Julia Lawall <julia@...u.dk>
Date: Tue, 9 Mar 2010 22:14:11 +0100 (CET)
> From: Julia Lawall <julia@...u.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>
>
> Signed-off-by: Julia Lawall <julia@...u.dk>
Applied, thanks!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists