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

dmaengine: ioat: remove unused ‘ioat_dma’

In ioat_tx_submit_unlock(), variable ‘ioat_dma’ is initialized but never
used, which leads to warning with W=1

drivers/dma/ioat/dma.c: In function ‘ioat_alloc_ring_ent’:
drivers/dma/ioat/dma.c:341:25: warning: variable ‘ioat_dma’ set but not used [-Wunused-but-set-variable]
struct ioatdma_device *ioat_dma;

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
··· 341 341 { 342 342 struct ioat_dma_descriptor *hw; 343 343 struct ioat_ring_ent *desc; 344 - struct ioatdma_device *ioat_dma; 345 344 struct ioatdma_chan *ioat_chan = to_ioat_chan(chan); 346 345 int chunk; 347 346 dma_addr_t phys; 348 347 u8 *pos; 349 348 off_t offs; 350 - 351 - ioat_dma = to_ioatdma_device(chan->device); 352 349 353 350 chunk = idx / IOAT_DESCS_PER_2M; 354 351 idx &= (IOAT_DESCS_PER_2M - 1);