From: Pekka Enberg Date: Tue, 6 Sep 2005 22:18:32 +0000 (-0700) Subject: [PATCH] PPC64: convert kcalloc to kzalloc X-Git-Tag: MMI-PSA29.97-13-9~55764 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=874ca6cd3fb454f4dfafd2bbb6c6893303227c3f;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] PPC64: convert kcalloc to kzalloc This patch converts kcalloc(1, ...) calls to use the new kzalloc() function. Signed-off-by: Pekka Enberg Cc: Paul Mackerras Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/arch/ppc64/kernel/pSeries_reconfig.c b/arch/ppc64/kernel/pSeries_reconfig.c index dc2a69d412a2..58c61219d08e 100644 --- a/arch/ppc64/kernel/pSeries_reconfig.c +++ b/arch/ppc64/kernel/pSeries_reconfig.c @@ -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;