Skip to content

Commit

Permalink
usb: dwc3: gadget: remove unnecessary code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Balbi committed Mar 4, 2013
1 parent d82f3e3 commit e5b29b2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/dwc3/gadget.c
Original file line number Diff line number Diff line change
Expand Up @@ -2159,16 +2159,13 @@ 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;
u8 speed;

dev_vdbg(dwc->dev, "%s\n", __func__);

memset(&params, 0x00, sizeof(params));

reg = dwc3_readl(dwc->regs, DWC3_DSTS);
speed = reg & DWC3_DSTS_CONNECTSPD;
dwc->speed = speed;
Expand Down

0 comments on commit e5b29b2

Please sign in to comment.