* [linux-next PATCH] staging: android: ion: fix prefer kcalloc over kzalloc with multiply
@ 2014-07-23 18:29 WANG Chao
0 siblings, 0 replies; only message in thread
From: WANG Chao @ 2014-07-23 18:29 UTC (permalink / raw)
To: Greg Kroah-Hartman
Cc: John Stultz, Tomas Winkler, Wei Yongjun, Chen Gang,
Paul Gortmaker, Dan Carpenter, open list:STAGING SUBSYSTEM,
open list
Fix checkpatch warning of prefer kcalloc over kzalloc with multiply,
found under drivers/staging/android/ion/.
Signed-off-by: WANG Chao <wangchao19890207@gmail.com>
---
drivers/staging/android/ion/ion_dummy_driver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/android/ion/ion_dummy_driver.c b/drivers/staging/android/ion/ion_dummy_driver.c
index 3a45e79..6d0a38a 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;
--
1.9.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-07-23 18:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-23 18:29 [linux-next PATCH] staging: android: ion: fix prefer kcalloc over kzalloc with multiply WANG Chao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®