Liam Merwick 56090d78a7 usb: rearrange usb_ep_get()
There is no need to calculate the 'eps' variable in usb_ep_get()
if 'ep' is the control endpoint.  Instead the calculation should
be done after validating the input before returning an entry
indexed by the endpoint 'ep'.

Signed-off-by: Liam Merwick <liam.merwick@oracle.com>
Reviewed-by: Darren Kenny <Darren.Kenny@oracle.com>
Reviewed-by: Mark Kanda <Mark.Kanda@oracle.com>
Reviewed-by: Ameya More <ameya.more@oracle.com>
Message-id: 1549460216-25808-2-git-send-email-liam.merwick@oracle.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2019-02-20 09:41:23 +01:00
..
2019-01-24 13:10:19 +01:00
2019-02-12 08:59:21 -08:00
2019-02-05 19:39:22 +00:00
2019-02-14 11:46:30 +01:00
2019-02-18 10:52:08 +11:00
2019-02-05 16:50:19 +01:00
2016-01-29 15:07:25 +00:00
2019-02-18 16:20:13 +00:00
2019-02-18 16:20:13 +00:00
2019-02-05 19:39:22 +00:00
2019-02-07 16:49:30 +00:00
2019-02-20 09:41:23 +01:00