]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/ata/pdc_adma.c
[PATCH] Fix numerous kcalloc() calls, convert to kzalloc()
[net-next-2.6.git] / drivers / ata / pdc_adma.c
index 9021e34d20966f7b70a631408b9599556e3042c3..90786d7a20bbbfde234167b64ef86a4f0a8fa16b 100644 (file)
@@ -551,7 +551,7 @@ static int adma_port_start(struct ata_port *ap)
                return rc;
        adma_enter_reg_mode(ap);
        rc = -ENOMEM;
-       pp = kcalloc(1, sizeof(*pp), GFP_KERNEL);
+       pp = kzalloc(sizeof(*pp), GFP_KERNEL);
        if (!pp)
                goto err_out;
        pp->pkt = dma_alloc_coherent(dev, ADMA_PKT_BYTES, &pp->pkt_dma,
@@ -672,7 +672,7 @@ static int adma_ata_init_one(struct pci_dev *pdev,
        if (rc)
                goto err_out_iounmap;
 
-       probe_ent = kcalloc(1, sizeof(*probe_ent), GFP_KERNEL);
+       probe_ent = kzalloc(sizeof(*probe_ent), GFP_KERNEL);
        if (probe_ent == NULL) {
                rc = -ENOMEM;
                goto err_out_iounmap;