[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1271043615.4957.11.camel@minskey-desktop>
Date: Mon, 12 Apr 2010 11:40:15 +0800
From: minskey <chaohong_guo@...ux.intel.com>
To: linux-kernel@...r.kernel.org
Cc: dan.j.williams@...el.com
Subject: [PATCH] ioatdma: 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 <chaohong_guo@...ux.intel.com>
---
drivers/dma/ioat/pci.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/drivers/dma/ioat/pci.c b/drivers/dma/ioat/pci.c
index 99ec267..a6e93ee 100644
--- a/drivers/dma/ioat/pci.c
+++ b/drivers/dma/ioat/pci.c
@@ -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]);
--
1.6.3.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists