Skip to content

Commit

Permalink
DMA: sudmac: fix compiler warning
Browse files Browse the repository at this point in the history
Fix the following compiler warning:

drivers/dma/sh/sudmac.c: In function 'sudmac_chan_remove':
drivers/dma/sh/sudmac.c:302: warning: unused variable 'sc'

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski+renesas@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
  • Loading branch information
Guennadi Liakhovetski authored and Vinod Koul committed Aug 27, 2013
1 parent c1c63a1 commit cc6b0f0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/dma/sh/sudmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,6 @@ static void sudmac_chan_remove(struct sudmac_device *su_dev)
int i;

shdma_for_each_chan(schan, &su_dev->shdma_dev, i) {
struct sudmac_chan *sc = to_chan(schan);

BUG_ON(!schan);

shdma_chan_remove(schan);
Expand Down

0 comments on commit cc6b0f0

Please sign in to comment.