Tag: 8f18604e6f0975fa852f43f90d5556efd67efadc

Staging: 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 Signed-off-by: Greg Kroah-Hartman — drivers/staging/rt2860/sta/assoc.c | 1 – drivers/staging/rt2860/sta_ioctl.c | 1 …

Continue reading