[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:
committed by
Paul Mackerras
parent
04d76b937b
commit
f8485350c2
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user