drivers/dma: drop unnecesary memset
authorJulia Lawall <julia@diku.dk>
Sat, 19 Dec 2009 07:30:30 +0000 (08:30 +0100)
committerDan Williams <dan.j.williams@intel.com>
Tue, 22 Dec 2009 22:29:05 +0000 (15:29 -0700)
memset of 0 is not needed after kzalloc

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression x;
statement S;
@@

x = kzalloc(...);
if (x == NULL) S
... when != x
-memset(x,0,...);// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>

No differences found