Staging: drop redundant memset
authorJulia Lawall <julia@diku.dk>
Tue, 9 Mar 2010 21:15:21 +0000 (22:15 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 11 May 2010 18:35:34 +0000 (11:35 -0700)
commit8f18604e6f0975fa852f43f90d5556efd67efadc
treef36ae2b6163467d3448e298c8edd2435fd4a69bd
parent347fd7dbdb6ca771f59996ae3c75a2dfde66c3d7
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>
drivers/staging/rt2860/sta/assoc.c
drivers/staging/rt2860/sta_ioctl.c
drivers/staging/rtl8192su/r819xU_cmdpkt.c
drivers/staging/rtl8192u/r819xU_cmdpkt.c
drivers/staging/vt6655/iwctl.c
drivers/staging/vt6656/iwctl.c