mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] timer: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...)
@ 2013-08-29 23:09 Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2013-08-29 23:09 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton, Thomas Gleixner

Use the helper function instead of __GFP_ZERO.

Signed-off-by: Joe Perches <joe@perches.com>
---
 kernel/timer.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/kernel/timer.c b/kernel/timer.c
index 4296d13..fab8eac 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -1518,9 +1518,8 @@ static int init_timers_cpu(int cpu)
 			/*
 			 * The APs use this path later in boot
 			 */
-			base = kmalloc_node(sizeof(*base),
-						GFP_KERNEL | __GFP_ZERO,
-						cpu_to_node(cpu));
+			base = kzalloc_node(sizeof(*base), GFP_KERNEL,
+					    cpu_to_node(cpu));
 			if (!base)
 				return -ENOMEM;
 
-- 
1.8.1.2.459.gbcd45b4.dirty


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-08-29 23:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-29 23:09 [PATCH] timer: Convert kmalloc_node(...GFP_ZERO...) to kzalloc_node(...) Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®