diff options
author | Yan Burman <burman.yan@gmail.com> | 2006-11-30 20:07:04 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-10 05:40:00 -0500 |
commit | c80892d150a872b18cedfbf789211bfbebfc67ce (patch) | |
tree | 8866c07d324e2a147d637056be296f195335eec5 /arch/sparc/kernel/sun4d_irq.c | |
parent | a2c1e064c45f5126625121f58afa423e13c55efc (diff) |
[SPARC]: Replace kmalloc+memset with kzalloc
Replace kmalloc+memset with kzalloc
Signed-off-by: Yan Burman <burman.yan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/sun4d_irq.c')
-rw-r--r-- | arch/sparc/kernel/sun4d_irq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/sparc/kernel/sun4d_irq.c b/arch/sparc/kernel/sun4d_irq.c index d4f9da8170c5..b8bd53ab29c5 100644 --- a/arch/sparc/kernel/sun4d_irq.c +++ b/arch/sparc/kernel/sun4d_irq.c | |||
@@ -545,8 +545,7 @@ void __init sun4d_init_sbi_irq(void) | |||
545 | nsbi = 0; | 545 | nsbi = 0; |
546 | for_each_sbus(sbus) | 546 | for_each_sbus(sbus) |
547 | nsbi++; | 547 | nsbi++; |
548 | sbus_actions = (struct sbus_action *)kmalloc (nsbi * 8 * 4 * sizeof(struct sbus_action), GFP_ATOMIC); | 548 | sbus_actions = kzalloc (nsbi * 8 * 4 * sizeof(struct sbus_action), GFP_ATOMIC); |
549 | memset (sbus_actions, 0, (nsbi * 8 * 4 * sizeof(struct sbus_action))); | ||
550 | for_each_sbus(sbus) { | 549 | for_each_sbus(sbus) { |
551 | #ifdef CONFIG_SMP | 550 | #ifdef CONFIG_SMP |
552 | extern unsigned char boot_cpu_id; | 551 | extern unsigned char boot_cpu_id; |