From: Julia Lawall Date: Sat, 19 Dec 2009 07:16:33 +0000 (+0100) Subject: drivers/gpu: Use kzalloc for allocating only one thing X-Git-Tag: v2.6.33-rc2~19^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e265f39e1ff026dcc787f1953c048f3de5aefd16;p=pandora-kernel.git drivers/gpu: Use kzalloc for allocating only one thing Use kzalloc rather than kcalloc(1,...) The use of the allocated memory that looks like an array is &p->relocs[0], but this should be the same as p->relocs. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ @@ - kcalloc(1, + kzalloc( ...) // Signed-off-by: Julia Lawall Signed-off-by: Dave Airlie --- Reading git-diff-tree failed