Staging: otus: drop redundant memset
authorJulia Lawall <julia@diku.dk>
Tue, 9 Mar 2010 21:14:58 +0000 (22:14 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:35:34 +0000 (11:35 -0700)
commit8d1fe5eaa3b796609a8e2b7dad2480e623c19819
tree28f1d8412b6ed962931e1af545cc023af9db7bf2
parentb7e7031aea1215da499b51fea0ade6b92f1232af
Staging: otus: 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>
drivers/staging/otus/wwrap.c