diff options
Diffstat (limited to 'drivers/dma/ioat/dma.c')
-rw-r--r-- | drivers/dma/ioat/dma.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c index b0517c86c1bb..97e100ce43eb 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 | ||
741 | static void ioat1_dma_start_null_desc(struct ioat_dma_chan *ioat) | 743 | static void ioat1_dma_start_null_desc(struct ioat_dma_chan *ioat) |