usb: dwc2: gadget: remove dead code from dwc2_hsotg_ep_enable()
authorRobert Baldyga <r.baldyga@samsung.com>
Mon, 29 Aug 2016 20:38:57 +0000 (13:38 -0700)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 31 Aug 2016 07:06:06 +0000 (10:06 +0300)
commit21f3bb52986c5f0ab74d350486de38fafff6ddef
tree95d55a9c63e11257b1c2b464380551d77b9e1f84
parentba48eab8866ca71e7978380cf7564cf8240f28f8
usb: dwc2: gadget: remove dead code from dwc2_hsotg_ep_enable()

Since FIFO is always freed in dwc2_hsotg_ep_disable(), ep->fifo_index
is always 0 in dwc2_hsotg_ep_enable(), hence code inside if() block is
never executed.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/gadget.c