aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinod Koul <vkoul@kernel.org>2018-07-09 10:38:48 -0400
committerVinod Koul <vkoul@kernel.org>2018-07-10 11:17:22 -0400
commit2f903bab92dea8dec8c93e4fa3c7c5295ef0a0fe (patch)
tree3c9f88c9a97fc319dac9169ce6c526d6f3863da8
parentbbcb87555869cb6c249bf00d13d3bc400c476c84 (diff)
dmaengine: pl330: remove set but unused variable
Compiler complains (with W=1): drivers/dma/pl330.c: In function ‘pl330_release_channel’: drivers/dma/pl330.c:1782:21: warning: variable ‘pl330’ set but not used [-Wunused-but-set-variable] struct pl330_dmac *pl330; ^~~~~ Remove the pl330 variable in pl330_release_channel as it is set but never used. Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r--drivers/dma/pl330.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 04fc4d8da0e9..451370da909d 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -1782,8 +1782,6 @@ static inline void _free_event(struct pl330_thread *thrd, int ev)
1782 1782
1783static void pl330_release_channel(struct pl330_thread *thrd) 1783static void pl330_release_channel(struct pl330_thread *thrd)
1784{ 1784{
1785 struct pl330_dmac *pl330;
1786
1787 if (!thrd || thrd->free) 1785 if (!thrd || thrd->free)
1788 return; 1786 return;
1789 1787
@@ -1792,8 +1790,6 @@ static void pl330_release_channel(struct pl330_thread *thrd)
1792 dma_pl330_rqcb(thrd->req[1 - thrd->lstenq].desc, PL330_ERR_ABORT); 1790 dma_pl330_rqcb(thrd->req[1 - thrd->lstenq].desc, PL330_ERR_ABORT);
1793 dma_pl330_rqcb(thrd->req[thrd->lstenq].desc, PL330_ERR_ABORT); 1791 dma_pl330_rqcb(thrd->req[thrd->lstenq].desc, PL330_ERR_ABORT);
1794 1792
1795 pl330 = thrd->dmac;
1796
1797 _free_event(thrd, thrd->ev); 1793 _free_event(thrd, thrd->ev);
1798 thrd->free = true; 1794 thrd->free = true;
1799} 1795}