git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
255f5c3
)
drivers/net: drop redundant memset
author
Julia Lawall
<julia@diku.dk>
Tue, 9 Mar 2010 11:14:11 +0000
(11:14 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 15 Mar 2010 22:47:03 +0000
(15:47 -0700)
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@diku.dk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/s2io.c
patch
|
blob
|
history
diff --cc
drivers/net/s2io.c
Simple merge