aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorJosh Abraham <j.abraham1776@gmail.com>2018-09-23 21:41:35 -0400
committerFelipe Balbi <felipe.balbi@linux.intel.com>2018-10-02 10:29:42 +0300
commit971a0d4e1be2bb18c3b58d6567743b7de0e4059f (patch)
treeca85e57c648ac37b1dbec693d3cbb8443bbe28b1 /drivers/usb
parentRevert "usb: renesas_usbhs: add extcon notifier to set mode for non-otg channel" (diff)
downloadlinux-dev-971a0d4e1be2bb18c3b58d6567743b7de0e4059f.tar.xz
linux-dev-971a0d4e1be2bb18c3b58d6567743b7de0e4059f.zip
usb: dwc2: remove set but unused variable
This patch removes a set but unused variable in hcd.c. Fixes gcc warning: variable ‘data_fifo’ set but not used [-Wunused-but-set-variable] Acked-by: Minas Harutyunyan <hminas@synopsys.com> Signed-off-by: Joshua Abraham <j.abraham1776@gmail.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/dwc2/hcd.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c
index 2bd6e6bfc241..5f23b933cafc 100644
--- a/drivers/usb/dwc2/hcd.c
+++ b/drivers/usb/dwc2/hcd.c
@@ -1328,14 +1328,11 @@ static void dwc2_hc_write_packet(struct dwc2_hsotg *hsotg,
u32 remaining_count;
u32 byte_count;
u32 dword_count;
- u32 __iomem *data_fifo;
u32 *data_buf = (u32 *)chan->xfer_buf;
if (dbg_hc(chan))
dev_vdbg(hsotg->dev, "%s()\n", __func__);
- data_fifo = (u32 __iomem *)(hsotg->regs + HCFIFO(chan->hc_num));
-
remaining_count = chan->xfer_len - chan->xfer_count;
if (remaining_count > chan->max_packet)
byte_count = chan->max_packet;