Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d320c455 authored by Phong Tran's avatar Phong Tran Committed by Greg Kroah-Hartman
Browse files

staging: android: ion: ion_dummy_driver.c Replace kzalloc() by kcalloc()



This patch fix checkpatch.pl warning
Tested by compilation only.

Signed-off-by: default avatarPhong Tran <tranmanphong@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4246e490
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;