[POWERPC] Replace kmalloc+memset with kzalloc
[deliverable/linux.git] / arch / powerpc / sysdev / qe_lib / ucc_slow.c
index a49da6b73ecf6c2d8fa0d23b71f872ca362c07b0..47b56203f47ee0017656ba1d654f831b8dd2e74d 100644 (file)
@@ -168,14 +168,12 @@ int ucc_slow_init(struct ucc_slow_info * us_info, struct ucc_slow_private ** ucc
                return -EINVAL;
        }
 
-       uccs = (struct ucc_slow_private *)
-               kmalloc(sizeof(struct ucc_slow_private), GFP_KERNEL);
+       uccs = kzalloc(sizeof(struct ucc_slow_private), GFP_KERNEL);
        if (!uccs) {
                uccs_err
                    ("ucc_slow_init: No memory for UCC slow data structure!");
                return -ENOMEM;
        }
-       memset(uccs, 0, sizeof(struct ucc_slow_private));
 
        /* Fill slow UCC structure */
        uccs->us_info = us_info;
This page took 0.04438 seconds and 5 git commands to generate.