git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3542a11
)
drivers/dma: drop unnecesary memset
author
Julia Lawall
<julia@diku.dk>
Sat, 19 Dec 2009 07:30:30 +0000
(08:30 +0100)
committer
Dan 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