diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-12-09 04:54:12 -0500 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-12-12 11:55:21 -0500 |
commit | 4cc8044148e7c3b1de3074b061d5b1aa224f3635 (patch) | |
tree | 834874f6743e575e61e51b95fb954e3f642ac7fe | |
parent | 56c492f34110f85d6af3686df48755b85a912827 (diff) |
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>
-rw-r--r-- | drivers/dma/ioat/dma.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/dma/ioat/dma.c b/drivers/dma/ioat/dma.c index 49386ce04bf5..1350b880bc0d 100644 --- a/drivers/dma/ioat/dma.c +++ b/drivers/dma/ioat/dma.c | |||
@@ -341,15 +341,12 @@ ioat_alloc_ring_ent(struct dma_chan *chan, int idx, gfp_t flags) | |||
341 | { | 341 | { |
342 | struct ioat_dma_descriptor *hw; | 342 | struct ioat_dma_descriptor *hw; |
343 | struct ioat_ring_ent *desc; | 343 | struct ioat_ring_ent *desc; |
344 | struct ioatdma_device *ioat_dma; | ||
345 | struct ioatdma_chan *ioat_chan = to_ioat_chan(chan); | 344 | struct ioatdma_chan *ioat_chan = to_ioat_chan(chan); |
346 | int chunk; | 345 | int chunk; |
347 | dma_addr_t phys; | 346 | dma_addr_t phys; |
348 | u8 *pos; | 347 | u8 *pos; |
349 | off_t offs; | 348 | off_t offs; |
350 | 349 | ||
351 | ioat_dma = to_ioatdma_device(chan->device); | ||
352 | |||
353 | chunk = idx / IOAT_DESCS_PER_2M; | 350 | chunk = idx / IOAT_DESCS_PER_2M; |
354 | idx &= (IOAT_DESCS_PER_2M - 1); | 351 | idx &= (IOAT_DESCS_PER_2M - 1); |
355 | offs = idx * IOAT_DESC_SZ; | 352 | offs = idx * IOAT_DESC_SZ; |