summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorPhong Tran <tranmanphong@gmail.com>2014-08-13 20:37:04 +0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-08-16 12:23:23 -0700
commitd320c455cb726cc0618ad9852982debc8af535b3 (patch)
treebfd157dc77fdbd946d7dd4ba1a1797677941c7e0 /drivers/staging
parent4246e490b59bf68839f75fa4354e099105ff927a (diff)
downloadtalos-obmc-linux-d320c455cb726cc0618ad9852982debc8af535b3.tar.gz
talos-obmc-linux-d320c455cb726cc0618ad9852982debc8af535b3.zip
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/android/ion/ion_dummy_driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/android/ion/ion_dummy_driver.c b/drivers/staging/android/ion/ion_dummy_driver.c
index 3a45e79fe444..6d0a38aabc7a 100644
--- a/drivers/staging/android/ion/ion_dummy_driver.c
+++ b/drivers/staging/android/ion/ion_dummy_driver.c
@@ -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;
OpenPOWER on IntegriCloud