diff options
author | Julia Lawall <julia@diku.dk> | 2009-12-19 08:16:33 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-23 10:04:02 +1000 |
commit | e265f39e1ff026dcc787f1953c048f3de5aefd16 (patch) | |
tree | 2cfc6ab613c9627e412b57900608bb9ed691d0bf /scripts/ver_linux | |
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>
Diffstat (limited to 'scripts/ver_linux')
0 files changed, 0 insertions, 0 deletions