Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ade34a35 authored by Joe Perches's avatar Joe Perches Committed by Linus Torvalds
Browse files

lib/genalloc.c: convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)



Use the helper function instead of __GFP_ZERO.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 2d8a1781
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -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;