Tag: e265f39e1ff026dcc787f1953c048f3de5aefd16

drivers/gpu: Use kzalloc for allocating only one thing

Author: Julia Lawall <julia@diku.dk> 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 …

Continue reading