[POWERPC] Replace kmalloc+memset with kzalloc
[deliverable/linux.git] / arch / powerpc / kernel / smp-tbsync.c
index e1970f83f14abee0bb6d18e9f4f7856d5f76ae55..bc892e69b4f732cd11c46a5ccb79be51eaf34fae 100644 (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;
 
This page took 0.122454 seconds and 5 git commands to generate.