aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ioat/dma.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/ioat/dma.c')
-rw-r--r--drivers/dma/ioat/dma.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c
index b0517c86c1b..97e100ce43e 100644
--- a/drivers/dma/ioat/dma.c
+++ b/drivers/dma/ioat/dma.c
@@ -729,13 +729,15 @@ ioat_dma_tx_status(struct dma_chan *c, dma_cookie_t cookie,
729{ 729{
730 struct ioat_chan_common *chan = to_chan_common(c); 730 struct ioat_chan_common *chan = to_chan_common(c);
731 struct ioatdma_device *device = chan->device; 731 struct ioatdma_device *device = chan->device;
732 enum dma_status ret;
732 733
733 if (ioat_tx_status(c, cookie, txstate) == DMA_SUCCESS) 734 ret = dma_cookie_status(c, cookie, txstate);
734 return DMA_SUCCESS; 735 if (ret == DMA_SUCCESS)
736 return ret;
735 737
736 device->cleanup_fn((unsigned long) c); 738 device->cleanup_fn((unsigned long) c);
737 739
738 return ioat_tx_status(c, cookie, txstate); 740 return dma_cookie_status(c, cookie, txstate);
739} 741}
740 742
741static void ioat1_dma_start_null_desc(struct ioat_dma_chan *ioat) 743static void ioat1_dma_start_null_desc(struct ioat_dma_chan *ioat)