diff options
author | Vinod Koul <vkoul@kernel.org> | 2018-11-26 03:04:15 -0500 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2018-11-26 03:05:52 -0500 |
commit | 35faaf0df42d285b40f8a6310afbe096720f7758 (patch) | |
tree | eb47587ee4dba475f39c0f3f9a57122d988938cd | |
parent | 627469e4445b9b12e0229b3bdf8564d5ce384dd7 (diff) |
dmaengine: coh901318: Remove unused variable
Commit 627469e4445b ("dmaengine: coh901318: Fix a double-lock bug") left
flags variable unused, so remove it to fix the warning.
drivers/dma/coh901318.c: In function 'coh901318_config':
drivers/dma/coh901318.c:1805:16: warning: unused variable 'flags' [-Wunused-variable]
unsigned long flags;
^~~~~
Fixes: 627469e4445b ("dmaengine: coh901318: Fix a double-lock bug")
Reported-By: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | drivers/dma/coh901318.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/dma/coh901318.c b/drivers/dma/coh901318.c index fd862a478738..b69d66e44052 100644 --- a/drivers/dma/coh901318.c +++ b/drivers/dma/coh901318.c | |||
@@ -1802,7 +1802,6 @@ static struct dma_chan *coh901318_xlate(struct of_phandle_args *dma_spec, | |||
1802 | static int coh901318_config(struct coh901318_chan *cohc, | 1802 | static int coh901318_config(struct coh901318_chan *cohc, |
1803 | struct coh901318_params *param) | 1803 | struct coh901318_params *param) |
1804 | { | 1804 | { |
1805 | unsigned long flags; | ||
1806 | const struct coh901318_params *p; | 1805 | const struct coh901318_params *p; |
1807 | int channel = cohc->id; | 1806 | int channel = cohc->id; |
1808 | void __iomem *virtbase = cohc->base->virtbase; | 1807 | void __iomem *virtbase = cohc->base->virtbase; |