From: Julia Lawall Date: Thu, 13 May 2010 19:58:56 +0000 (+0200) Subject: drivers/gpu/drm: Use kzalloc X-Git-Tag: v2.6.35-rc1~451^2~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ebc22e6d06760466859b79d7b3b3edad264a230;p=pandora-kernel.git drivers/gpu/drm: Use kzalloc Use kzalloc rather than the combination of kmalloc and memset. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ expression x,size,flags; statement S; @@ -x = kmalloc(size,flags); +x = kzalloc(size,flags); if (x == NULL) S -memset(x, 0, size); // Signed-off-by: Julia Lawall Reviewed-by: Corbin Simpson Reviewed-by: Matt Turner Signed-off-by: Dave Airlie --- Reading git-diff-tree failed