diff options
author | Joe Perches <joe@perches.com> | 2013-09-11 17:23:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-11 18:58:14 -0400 |
commit | 7b5219db00d0afaf3d2b0e8c443ffa892455ba75 (patch) | |
tree | 5e09a086a915cb94aa0bb6563898b9c6849b9f05 /mm/mempool.c | |
parent | ade34a35722fab0c8a1d162a15b919d20373a894 (diff) |
mm/mempool.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>
Diffstat (limited to 'mm/mempool.c')
-rw-r--r-- | mm/mempool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempool.c b/mm/mempool.c index 54990476c049..659aa42bad16 100644 --- a/mm/mempool.c +++ b/mm/mempool.c | |||
@@ -73,7 +73,7 @@ mempool_t *mempool_create_node(int min_nr, mempool_alloc_t *alloc_fn, | |||
73 | gfp_t gfp_mask, int node_id) | 73 | gfp_t gfp_mask, int node_id) |
74 | { | 74 | { |
75 | mempool_t *pool; | 75 | mempool_t *pool; |
76 | pool = kmalloc_node(sizeof(*pool), gfp_mask | __GFP_ZERO, node_id); | 76 | pool = kzalloc_node(sizeof(*pool), gfp_mask, node_id); |
77 | if (!pool) | 77 | if (!pool) |
78 | return NULL; | 78 | return NULL; |
79 | pool->elements = kmalloc_node(min_nr * sizeof(void *), | 79 | pool->elements = kmalloc_node(min_nr * sizeof(void *), |