[POWERPC] Replace kmalloc+memset with kzalloc

Replace kmalloc+memset with kzalloc.

Signed-off-by: Yan Burman <burman.yan@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Yan Burman
2006-12-02 13:26:57 +02:00
committed by Paul Mackerras
parent 04d76b937b
commit f8485350c2
9 changed files with 9 additions and 22 deletions

View File

@ -116,8 +116,7 @@ void __devinit smp_generic_give_timebase(void)
printk("Synchronizing timebase\n");
/* if this fails then this kernel won't work anyway... */
tbsync = kmalloc( sizeof(*tbsync), GFP_KERNEL );
memset( tbsync, 0, sizeof(*tbsync) );
tbsync = kzalloc( sizeof(*tbsync), GFP_KERNEL );
mb();
running = 1;