treewide: kzalloc() -> kcalloc()
[linux-2.6-block.git] / sound / pci / ctxfi / ctmixer.c
index 4f4a2a5dedb8f0fd8eb5b1679cfbab08c5441e12..db710d0a609fc14a55c0719816992b8a976ea2f0 100644 (file)
@@ -910,13 +910,14 @@ static int ct_mixer_get_mem(struct ct_mixer **rmixer)
        if (!mixer)
                return -ENOMEM;
 
-       mixer->amixers = kzalloc(sizeof(void *)*(NUM_CT_AMIXERS*CHN_NUM),
+       mixer->amixers = kcalloc(NUM_CT_AMIXERS * CHN_NUM, sizeof(void *),
                                 GFP_KERNEL);
        if (!mixer->amixers) {
                err = -ENOMEM;
                goto error1;
        }
-       mixer->sums = kzalloc(sizeof(void *)*(NUM_CT_SUMS*CHN_NUM), GFP_KERNEL);
+       mixer->sums = kcalloc(NUM_CT_SUMS * CHN_NUM, sizeof(void *),
+                             GFP_KERNEL);
        if (!mixer->sums) {
                err = -ENOMEM;
                goto error2;