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

dmaengine: usb-dmac: remove unused ‘uchan’

In usb_dmac_of_xlate(), variable ‘uchan’ is initialized but never used, which
leads to warning with W=1

drivers/dma/sh/usb-dmac.c: In function ‘usb_dmac_of_xlate’:
drivers/dma/sh/usb-dmac.c:655:24: warning: variable ‘uchan’ set but not used [-Wunused-but-set-variable]
struct usb_dmac_chan *uchan;

So remove it.

Cc: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>

-3
-3
drivers/dma/sh/usb-dmac.c
··· 652 652 static struct dma_chan *usb_dmac_of_xlate(struct of_phandle_args *dma_spec, 653 653 struct of_dma *ofdma) 654 654 { 655 - struct usb_dmac_chan *uchan; 656 655 struct dma_chan *chan; 657 656 dma_cap_mask_t mask; 658 657 ··· 665 666 chan = dma_request_channel(mask, usb_dmac_chan_filter, dma_spec); 666 667 if (!chan) 667 668 return NULL; 668 - 669 - uchan = to_usb_dmac_chan(chan); 670 669 671 670 return chan; 672 671 }