mirror of https://gitee.com/openkylin/linux.git
[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>
This commit is contained in:
parent
f96cb1f058
commit
874ca6cd3f
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue