summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/bdc/bdc_ep.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-11-29 15:49:17 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-12-03 03:15:02 +0300
commit016040268ccafaa7ad74ef88708d54fedeb87072 (patch)
tree4b39a5428bbcb4782c5a86c62a50437461df9d8d /drivers/usb/gadget/udc/bdc/bdc_ep.c
parent6aeab4775262a606b56fef5272ec045ff647602e (diff)
downloadlinux-016040268ccafaa7ad74ef88708d54fedeb87072.tar.xz
usb: gadget: udc: missing curly braces
There were curly braces intended here. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/udc/bdc/bdc_ep.c')
-rw-r--r--drivers/usb/gadget/udc/bdc/bdc_ep.c3
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)
dword3 |= BD_SOT|BD_SBF|(tfs<<BD_TFS_SHIFT);
dword2 |= BD_LTF;
/* format of first bd for ep0 is different than other */
- if (ep->ep_num == 1)
+ if (ep->ep_num == 1) {
ret = setup_first_bd_ep0(bdc, req, &dword3);
if (ret)
return ret;
+ }
}
if (!req->ep->dir)
dword3 |= BD_ISP;