diff options
-rw-r--r-- | drivers/usb/gadget/udc/bdc/bdc_ep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/udc/bdc/bdc_ep.c b/drivers/usb/gadget/udc/bdc/bdc_ep.c index 15da5b1e76c0..ff67ceac77c4 100644 --- a/drivers/usb/gadget/udc/bdc/bdc_ep.c +++ b/drivers/usb/gadget/udc/bdc/bdc_ep.c | |||
@@ -457,10 +457,11 @@ static int setup_bd_list_xfr(struct bdc *bdc, struct bdc_req *req, int num_bds) | |||
457 | dword3 |= BD_SOT|BD_SBF|(tfs<<BD_TFS_SHIFT); | 457 | dword3 |= BD_SOT|BD_SBF|(tfs<<BD_TFS_SHIFT); |
458 | dword2 |= BD_LTF; | 458 | dword2 |= BD_LTF; |
459 | /* format of first bd for ep0 is different than other */ | 459 | /* format of first bd for ep0 is different than other */ |
460 | if (ep->ep_num == 1) | 460 | if (ep->ep_num == 1) { |
461 | ret = setup_first_bd_ep0(bdc, req, &dword3); | 461 | ret = setup_first_bd_ep0(bdc, req, &dword3); |
462 | if (ret) | 462 | if (ret) |
463 | return ret; | 463 | return ret; |
464 | } | ||
464 | } | 465 | } |
465 | if (!req->ep->dir) | 466 | if (!req->ep->dir) |
466 | dword3 |= BD_ISP; | 467 | dword3 |= BD_ISP; |