Skip to content

Commit 874ca6c

Browse files
Pekka EnbergLinus Torvalds
authored andcommitted
[PATCH] PPC64: 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> Cc: Paul Mackerras <paulus@samba.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent f96cb1f commit 874ca6c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/ppc64/kernel/pSeries_reconfig.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ static int pSeries_reconfig_add_node(const char *path, struct property *proplist
111111
struct device_node *np;
112112
int err = -ENOMEM;
113113

114-
np = kcalloc(1, sizeof(*np), GFP_KERNEL);
114+
np = kzalloc(sizeof(*np), GFP_KERNEL);
115115
if (!np)
116116
goto out_err;
117117

0 commit comments

Comments
 (0)