Skip to contentSkip to conversation

ioatdma: Remove duplicated devm_kzalloc() calls for ioatdma_device

PATCH New minskey 1 participant 1 message Apr 12, 2010 dmaengine

lore
Share & tools
lore

minskey

author
#0 lore raw

PATCH 1/1 ioatdma: Remove duplicated devm_kzalloc() calls for ioatdma_device

The memory for ioatdma_device structure is being allocated in alloc_ioatdma()

---
 drivers/dma/ioat/pci.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
drivers/dma/ioat/pci.c +0 -0
index 99ec267..a6e93ee 100644  
@@ -138,10 +138,6 @@ 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]);
Signature · 1 line
1.6.3.3