commit | 8f18604e6f0975fa852f43f90d5556efd67efadc | [log] [tgz] |
---|---|---|
author | Julia Lawall <julia@diku.dk> | Tue Mar 09 22:15:21 2010 +0100 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Tue May 11 11:35:34 2010 -0700 |
tree | f36ae2b6163467d3448e298c8edd2435fd4a69bd | |
parent | 347fd7dbdb6ca771f59996ae3c75a2dfde66c3d7 [diff] |
Staging: drop redundant memset 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: Greg Kroah-Hartman <gregkh@suse.de>