]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
dmaengine: usb-dmac: remove unused ‘uchan’
authorVinod Koul <vinod.koul@intel.com>
Fri, 9 Dec 2016 09:54:12 +0000 (15:24 +0530)
committerVinod Koul <vinod.koul@intel.com>
Mon, 12 Dec 2016 16:55:21 +0000 (22:25 +0530)
commit7833a31df71dea6cd7342a5a0cc5277f0016c515
treed725aa07d24ae1524b6d2c7c56cf28477bb58195
parenteef2c22cc3397bb8cf9f47226241fc65c04339aa
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>
drivers/dma/sh/usb-dmac.c