@@ -1303,12 +1303,13 @@ static int xhci_num_tds_for_urb(struct urb *urb)
static int xhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb, gfp_t mem_flags)
{
struct xhci_hcd *xhci = hcd_to_xhci(hcd);
+ struct urb_priv *urb_priv;
unsigned long flags;
- int ret = 0;
- unsigned int slot_id, ep_index;
unsigned int *ep_state;
- struct urb_priv *urb_priv;
+ unsigned int ep_index;
+ unsigned int slot_id;
int num_tds;
+ int ret;
if (!urb || xhci_check_args(hcd, urb->dev, urb->ep,
true, true, __func__) <= 0)
Cleanup only, no functional changes. While at that, remove the initialization of ret which is now unnecessary. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com> --- drivers/usb/host/xhci.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)