diff options
author | Felipe Balbi <balbi@ti.com> | 2013-02-15 10:45:42 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-03-04 09:33:25 +0200 |
commit | e5b29b25f8f88ece53579fa87580bb2973815977 (patch) | |
tree | d79f062fe1a0addaab6ee38916cb71c36b80f48f /drivers/usb/dwc3/gadget.c | |
parent | d82f3e3cd88053836a2dd928b5545873cbdcf7da (diff) | |
download | linux-e5b29b25f8f88ece53579fa87580bb2973815977.tar.bz2 |
usb: dwc3: gadget: remove unnecessary code
the params variables on dwc3_gadget_conndone_interrupt()
is only memset() to zero but never used in
that function, so we can safely drop the variable
and memset() call.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/dwc3/gadget.c')
-rw-r--r-- | drivers/usb/dwc3/gadget.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index a04342f6cbfa..82e160e96fca 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -2159,7 +2159,6 @@ static void dwc3_gadget_phy_suspend(struct dwc3 *dwc, u8 speed) static void dwc3_gadget_conndone_interrupt(struct dwc3 *dwc) { - struct dwc3_gadget_ep_cmd_params params; struct dwc3_ep *dep; int ret; u32 reg; @@ -2167,8 +2166,6 @@ static void dwc3_gadget_conndone_interrupt(struct dwc3 *dwc) dev_vdbg(dwc->dev, "%s\n", __func__); - memset(¶ms, 0x00, sizeof(params)); - reg = dwc3_readl(dwc->regs, DWC3_DSTS); speed = reg & DWC3_DSTS_CONNECTSPD; dwc->speed = speed; |