2013-08-02 13:23:08

by Guennadi Liakhovetski

[permalink] [raw]
Subject: [PATCH] DMA: sudmac: fix compiler warning

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 <[email protected]>
---
drivers/dma/sh/sudmac.c | 2 --
1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/dma/sh/sudmac.c b/drivers/dma/sh/sudmac.c
index 2a8e3c2..4600b42 100644
--- a/drivers/dma/sh/sudmac.c
+++ b/drivers/dma/sh/sudmac.c
@@ -299,8 +299,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);
--
1.7.2.5