commit | e265f39e1ff026dcc787f1953c048f3de5aefd16 | [log] [tgz] |
---|---|---|
author | Julia Lawall <julia@diku.dk> | Sat Dec 19 08:16:33 2009 +0100 |
committer | Dave Airlie <airlied@redhat.com> | Wed Dec 23 10:04:02 2009 +1000 |
tree | 2cfc6ab613c9627e412b57900608bb9ed691d0bf | |
parent | 01136acff8cc8251822fbae77f11e8029049c6f1 [diff] |
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/) // <smpl> @@ @@ - kcalloc(1, + kzalloc( ...) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Dave Airlie <airlied@redhat.com>