[ARM] Convert kmalloc+memset to kzalloc
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / mach-integrator / integrator_ap.c
index d8d3c2a5a97e22692e7decb9c176edead7ce036b..6d65c96ebfd2a05f988f8fde100b691e779ee4cc 100644 (file)
@@ -319,12 +319,10 @@ static void __init ap_init(void)
                if ((sc_dec & (16 << i)) == 0)
                        continue;
 
-               lmdev = kmalloc(sizeof(struct lm_device), GFP_KERNEL);
+               lmdev = kzalloc(sizeof(struct lm_device), GFP_KERNEL);
                if (!lmdev)
                        continue;
 
-               memset(lmdev, 0, sizeof(struct lm_device));
-
                lmdev->resource.start = 0xc0000000 + 0x10000000 * i;
                lmdev->resource.end = lmdev->resource.start + 0x0fffffff;
                lmdev->resource.flags = IORESOURCE_MEM;