mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-10 00:26:34 +00:00
lib/genalloc.c: convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)
Use the helper function instead of __GFP_ZERO. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
2d8a17813e
commit
ade34a3572
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ int gen_pool_add_virt(struct gen_pool *pool, unsigned long virt, phys_addr_t phy
|
||||||
int nbytes = sizeof(struct gen_pool_chunk) +
|
int nbytes = sizeof(struct gen_pool_chunk) +
|
||||||
BITS_TO_LONGS(nbits) * sizeof(long);
|
BITS_TO_LONGS(nbits) * sizeof(long);
|
||||||
|
|
||||||
chunk = kmalloc_node(nbytes, GFP_KERNEL | __GFP_ZERO, nid);
|
chunk = kzalloc_node(nbytes, GFP_KERNEL, nid);
|
||||||
if (unlikely(chunk == NULL))
|
if (unlikely(chunk == NULL))
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue