From: Julia Lawall Date: Tue, 9 Mar 2010 21:14:34 +0000 (+0100) Subject: [SCSI] pm8001: drop redundant memset X-Git-Tag: v2.6.35-rc1~470^2^2~172 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e05a9e7b18dfcce6911d0b901d7f04387cc1d93c;p=pandora-kernel.git [SCSI] pm8001: 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/) // @@ expression e1,e2,e3,e4; @@ - memset(e1,e2,e3); memcpy(e1,e4,e3); // Signed-off-by: Julia Lawall Acked-by: Jack Wang Signed-off-by: James Bottomley --- Reading git-diff-tree failed