[SCSI] pm8001: drop redundant memset
authorJulia Lawall <julia@diku.dk>
Tue, 9 Mar 2010 21:14:34 +0000 (22:14 +0100)
committerJames Bottomley <James.Bottomley@suse.de>
Sun, 11 Apr 2010 14:23:30 +0000 (09:23 -0500)
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>
Acked-by: Jack Wang <jack_wang@usish.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

No differences found