You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[PATCH] drivers: convert kcalloc to kzalloc
This patch converts kcalloc(1, ...) calls to use the new kzalloc() function. Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
7b842b6e37
commit
82ca76b6b1
@@ -35,7 +35,7 @@ aoedev_newdev(ulong nframes)
|
||||
struct aoedev *d;
|
||||
struct frame *f, *e;
|
||||
|
||||
d = kcalloc(1, sizeof *d, GFP_ATOMIC);
|
||||
d = kzalloc(sizeof *d, GFP_ATOMIC);
|
||||
if (d == NULL)
|
||||
return NULL;
|
||||
f = kcalloc(nframes, sizeof *f, GFP_ATOMIC);
|
||||
|
||||
Reference in New Issue
Block a user