Tag: e05a9e7b18dfcce6911d0b901d7f04387cc1d93c

[SCSI] pm8001: drop redundant memset

Author: Julia Lawall <julia@diku.dk> 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 — drivers/scsi/pm8001/pm8001_hwi.c | 1 – …

Continue reading