Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-2
-2
drivers/dma/pch_dma.c
··· 417 417 { 418 418 struct pch_dma_desc *desc = to_pd_desc(txd); 419 419 struct pch_dma_chan *pd_chan = to_pd_chan(txd->chan); 420 - dma_cookie_t cookie; 421 420 422 421 spin_lock(&pd_chan->lock); 423 - cookie = dma_cookie_assign(txd); 424 422 425 423 if (list_empty(&pd_chan->active_list)) { 426 424 list_add_tail(&desc->desc_node, &pd_chan->active_list);