Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eef2c22c authored by Vinod Koul's avatar Vinod Koul
Browse files

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: default avatarVinod Koul <vinod.koul@intel.com>
parent 4cc80441
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -611,11 +611,8 @@ static void __cleanup(struct ioatdma_chan *ioat_chan, dma_addr_t phys_complete)


		tx = &desc->txd;
		tx = &desc->txd;
		if (tx->cookie) {
		if (tx->cookie) {
			struct dmaengine_result res;

			dma_cookie_complete(tx);
			dma_cookie_complete(tx);
			dma_descriptor_unmap(tx);
			dma_descriptor_unmap(tx);
			res.result = DMA_TRANS_NOERROR;
			dmaengine_desc_get_callback_invoke(tx, NULL);
			dmaengine_desc_get_callback_invoke(tx, NULL);
			tx->callback = NULL;
			tx->callback = NULL;
			tx->callback_result = NULL;
			tx->callback_result = NULL;