* [PATCH] ioatdma: Remove duplicated devm_kzalloc() calls for ioatdma_device
@ 2010-04-12 3:40 minskey
0 siblings, 0 replies; only message in thread
From: minskey @ 2010-04-12 3:40 UTC (permalink / raw)
To: linux-kernel; +Cc: dan.j.williams
The memory for ioatdma_device structure is being allocated in
alloc_ioatdma()
Signed-off-by: Minskey Guo <chaohong_guo@linux.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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-12 3:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-12 3:40 [PATCH] ioatdma: Remove duplicated devm_kzalloc() calls for ioatdma_device minskey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox