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:
Phong Tran 2014-08-13 20:37:04 +07:00 committed by Greg Kroah-Hartman
parent 4246e490b5
commit d320c455cb
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ static int __init ion_dummy_init(void)
int i, err; int i, err;
idev = ion_device_create(NULL); 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); GFP_KERNEL);
if (!heaps) if (!heaps)
return -ENOMEM; return -ENOMEM;