diff options
author | Joe Perches <joe@perches.com> | 2013-09-11 17:23:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-11 18:58:13 -0400 |
commit | ade34a35722fab0c8a1d162a15b919d20373a894 (patch) | |
tree | 5b0fe4c8c158dda0a3259e89cba447509cdbba33 /lib | |
parent | 2d8a17813ec817fa58addd2c92b4ca8cae5bafbb (diff) |
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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/genalloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/genalloc.c b/lib/genalloc.c index 2a39bf62d8c1..c522facfa3e5 100644 --- a/lib/genalloc.c +++ b/lib/genalloc.c | |||
@@ -187,7 +187,7 @@ int gen_pool_add_virt(struct gen_pool *pool, unsigned long virt, phys_addr_t phy | |||
187 | int nbytes = sizeof(struct gen_pool_chunk) + | 187 | int nbytes = sizeof(struct gen_pool_chunk) + |
188 | BITS_TO_LONGS(nbits) * sizeof(long); | 188 | BITS_TO_LONGS(nbits) * sizeof(long); |
189 | 189 | ||
190 | chunk = kmalloc_node(nbytes, GFP_KERNEL | __GFP_ZERO, nid); | 190 | chunk = kzalloc_node(nbytes, GFP_KERNEL, nid); |
191 | if (unlikely(chunk == NULL)) | 191 | if (unlikely(chunk == NULL)) |
192 | return -ENOMEM; | 192 | return -ENOMEM; |
193 | 193 | ||