staging: android: ion: ion_dummy_driver.c Replace kzalloc() by kcalloc()
This patch fix checkpatch.pl warning Tested by compilation only. Signed-off-by: Phong Tran <tranmanphong@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4246e490b5
commit
d320c455cb
@ -68,7 +68,7 @@ static int __init ion_dummy_init(void)
|
||||
int i, err;
|
||||
|
||||
idev = ion_device_create(NULL);
|
||||
heaps = kzalloc(sizeof(struct ion_heap *) * dummy_ion_pdata.nr,
|
||||
heaps = kcalloc(dummy_ion_pdata.nr, sizeof(struct ion_heap *),
|
||||
GFP_KERNEL);
|
||||
if (!heaps)
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user