]> asedeno.scripts.mit.edu Git - linux.git/commit
dmaengine: iop-adma: remove set but not used variable 'slots_per_op'
authorYueHaibing <yuehaibing@huawei.com>
Wed, 21 Aug 2019 12:19:08 +0000 (20:19 +0800)
committerVinod Koul <vkoul@kernel.org>
Wed, 4 Sep 2019 04:45:38 +0000 (10:15 +0530)
commit09104bb1b5d4680444687839b1d155ed69e89248
treee8f3e3af6e73945d8db494ce32aa1e65f7cb74a7
parentfb9816f9d05f01330b27ddf5dfa93d0f848e3405
dmaengine: iop-adma: remove set but not used variable 'slots_per_op'

Fixes gcc '-Wunused-but-set-variable' warning:

drivers/dma/iop-adma.c: In function iop_adma_tx_submit:
drivers/dma/iop-adma.c:367:6: warning:
 variable slots_per_op set but not used [-Wunused-but-set-variable]

It is never used, so can be removed.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190821121908.7468-1-yuehaibing@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/iop-adma.c