OSDN Git Service

staging: android: ion: ion_dummy_driver.c Replace kzalloc() by kcalloc()
authorPhong Tran <tranmanphong@gmail.com>
Wed, 13 Aug 2014 13:37:04 +0000 (20:37 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:23 +0000 (12:23 -0700)
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>
drivers/staging/android/ion/ion_dummy_driver.c

index 3a45e79..6d0a38a 100644 (file)
@@ -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;