From: Minskey Guo Date: Sun, 2 May 2010 19:52:35 +0000 (-0700) Subject: ioat: Remove duplicated devm_kzalloc() calls for ioatdma_device X-Git-Tag: v2.6.35-rc1~439^2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c86e1401c9f2ba8d989fa1c4b33d0f0ec3ba8aaf;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.git ioat: Remove duplicated devm_kzalloc() calls for ioatdma_device The memory for ioatdma_device structure is being allocated in alloc_ioatdma() Signed-off-by: Minskey Guo Signed-off-by: Dan Williams --- diff --git a/drivers/dma/ioat/pci.c b/drivers/dma/ioat/pci.c index 99ec267..fab37d1 100644 --- a/drivers/dma/ioat/pci.c +++ b/drivers/dma/ioat/pci.c @@ -138,15 +138,10 @@ static int __devinit ioat_pci_probe(struct pci_dev *pdev, const struct pci_devic if (err) return err; - device = devm_kzalloc(dev, sizeof(*device), GFP_KERNEL); - if (!device) - return -ENOMEM; - - pci_set_master(pdev); - device = alloc_ioatdma(pdev, iomap[IOAT_MMIO_BAR]); if (!device) return -ENOMEM; + pci_set_master(pdev); pci_set_drvdata(pdev, device); device->version = readb(device->reg_base + IOAT_VER_OFFSET);