Tag: 876e956f207373f974f2808c36aabcd4e32c9ee4

drivers/net: 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: David S. Miller — drivers/net/s2io.c | 4 +— 1 file …

Continue reading