Thread (1 message) flat view 1 message, 1 author, 2010-03-15

Re: [PATCH 2/5] drivers/net: drop redundant memset

From: David Miller <davem@davemloft.net>
Date: 2010-03-15 22:47:04
Also in: kernel-janitors, lkml

From: Julia Lawall <redacted>
Date: Tue, 9 Mar 2010 22:14:11 +0100 (CET)
From: Julia Lawall <redacted>

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 <redacted>
Applied, thanks!
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help