Skip to content

Commit

Permalink
[PATCH] PPC64: convert kcalloc to kzalloc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Pekka Enberg authored and Linus Torvalds committed Sep 7, 2005
1 parent f96cb1f commit 874ca6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/ppc64/kernel/pSeries_reconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static int pSeries_reconfig_add_node(const char *path, struct property *proplist
struct device_node *np;
int err = -ENOMEM;

np = kcalloc(1, sizeof(*np), GFP_KERNEL);
np = kzalloc(sizeof(*np), GFP_KERNEL);
if (!np)
goto out_err;

Expand Down

0 comments on commit 874ca6c

Please sign in to comment.