]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
dmaengine: ioat: remove unused ‘res’
authorVinod Koul <vinod.koul@intel.com>
Fri, 9 Dec 2016 09:54:12 +0000 (15:24 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 12 Dec 2016 16:55:21 +0000 (22:25 +0530)
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>
drivers/dma/ioat/dma.c

index 1350b880bc0def158f86fdfe2b7b8441c68fc1eb..c867db76593639076cf6f31ca1709245afb0ea18 100644 (file)
@@ -611,11 +611,8 @@ static void __cleanup(struct ioatdma_chan *ioat_chan, dma_addr_t phys_complete)
 
                tx = &desc->txd;
                if (tx->cookie) {
-                       struct dmaengine_result res;
-
                        dma_cookie_complete(tx);
                        dma_descriptor_unmap(tx);
-                       res.result = DMA_TRANS_NOERROR;
                        dmaengine_desc_get_callback_invoke(tx, NULL);
                        tx->callback = NULL;
                        tx->callback_result = NULL;