diff options
author | Vinod Koul <vinod.koul@intel.com> | 2016-12-09 12:54:12 +0300 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-12-12 19:55:22 +0300 |
commit | b33f7832bbf24dd40322fd673b2d7e3493c8515f (patch) | |
tree | 5c6c7c00ce6674c936c7ff9dadb7faaadc636619 /drivers/dma | |
parent | 765d2a6548f6e5b2968001481d19322bf9b78d83 (diff) | |
download | linux-b33f7832bbf24dd40322fd673b2d7e3493c8515f.tar.xz |
dmaengine: pch_dma: remove unused ‘cookie’
In pd_tx_submit(), variable ‘cookie’ is initialized but never used, which
leads to warning with W=1
drivers/dma/pch_dma.c: In function ‘pd_tx_submit’:
drivers/dma/pch_dma.c:420:15: warning: variable ‘cookie’ set but not used [-Wunused-but-set-variable]
dma_cookie_t cookie;
So remove it.
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/pch_dma.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/pch_dma.c b/drivers/dma/pch_dma.c index b8d858c7a7a5..f9028e9d0dfc 100644 --- a/drivers/dma/pch_dma.c +++ b/drivers/dma/pch_dma.c @@ -417,10 +417,8 @@ static dma_cookie_t pd_tx_submit(struct dma_async_tx_descriptor *txd) { struct pch_dma_desc *desc = to_pd_desc(txd); struct pch_dma_chan *pd_chan = to_pd_chan(txd->chan); - dma_cookie_t cookie; spin_lock(&pd_chan->lock); - cookie = dma_cookie_assign(txd); if (list_empty(&pd_chan->active_list)) { list_add_tail(&desc->desc_node, &pd_chan->active_list); |