mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
[PATCH] Fix numerous kcalloc() calls, convert to kzalloc()
All kcalloc() calls of the form "kcalloc(1,...)" are converted to the equivalent kzalloc() calls, and a few kcalloc() calls with the incorrect ordering of the first two arguments are fixed. Signed-off-by: Robert P. J. Day <[email protected]> Cc: Jeff Garzik <[email protected]> Cc: Alan Cox <[email protected]> Cc: Dominik Brodowski <[email protected]> Cc: Adam Belay <[email protected]> Cc: James Bottomley <[email protected]> Cc: Greg KH <[email protected]> Cc: Mark Fasheh <[email protected]> Cc: Trond Myklebust <[email protected]> Cc: Neil Brown <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
90aef12e6d
commit
cd86128088
33 changed files with 89 additions and 89 deletions
|
|
@ -945,7 +945,7 @@ static struct smu_sdbp_header *smu_create_sdb_partition(int id)
|
|||
*/
|
||||
tlen = sizeof(struct property) + len + 18;
|
||||
|
||||
prop = kcalloc(tlen, 1, GFP_KERNEL);
|
||||
prop = kzalloc(tlen, GFP_KERNEL);
|
||||
if (prop == NULL)
|
||||
return NULL;
|
||||
hdr = (struct smu_sdbp_header *)(prop + 1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue