diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-12-09 04:54:12 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-12-12 11:55:21 -0500 |
commit | eef2c22cc3397bb8cf9f47226241fc65c04339aa (patch) | |
tree | 583ebfd2cbb796f215ee30e6781d6135dee6cefb | |
parent | 4cc8044148e7c3b1de3074b061d5b1aa224f3635 (diff) |
dmaengine: ioat: remove unused ‘res’
In __cleanup(), variable ‘res’ is initialized but never used, which
leads to warning with W=1
drivers/dma/ioat/dma.c: In function ‘__cleanup’:
drivers/dma/ioat/dma.c:614:28: warning: variable ‘res’ set but not used [-Wunused-but-set-variable]
struct dmaengine_result res;
So remove it.
Cc: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
-rw-r--r-- | drivers/dma/ioat/dma.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c index 1350b880bc0d..c867db765936 100644 --- a/drivers/dma/ioat/dma.c +++ b/drivers/dma/ioat/dma.c | |||
@@ -611,11 +611,8 @@ static void __cleanup(struct ioatdma_chan *ioat_chan, dma_addr_t phys_complete) | |||
611 | 611 | ||
612 | tx = &desc->txd; | 612 | tx = &desc->txd; |
613 | if (tx->cookie) { | 613 | if (tx->cookie) { |
614 | struct dmaengine_result res; | ||
615 | |||
616 | dma_cookie_complete(tx); | 614 | dma_cookie_complete(tx); |
617 | dma_descriptor_unmap(tx); | 615 | dma_descriptor_unmap(tx); |
618 | res.result = DMA_TRANS_NOERROR; | ||
619 | dmaengine_desc_get_callback_invoke(tx, NULL); | 616 | dmaengine_desc_get_callback_invoke(tx, NULL); |
620 | tx->callback = NULL; | 617 | tx->callback = NULL; |
621 | tx->callback_result = NULL; | 618 | tx->callback_result = NULL; |