Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-3
-3
drivers/dma/ioat/dma.c
··· 611 611 612 612 tx = &desc->txd; 613 613 if (tx->cookie) { 614 - struct dmaengine_result res; 615 - 616 614 dma_cookie_complete(tx); 617 615 dma_descriptor_unmap(tx); 618 - res.result = DMA_TRANS_NOERROR; 619 616 dmaengine_desc_get_callback_invoke(tx, NULL); 620 617 tx->callback = NULL; 621 618 tx->callback_result = NULL;