usb: gadget: udc: missing curly braces
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 29 Nov 2014 12:49:17 +0000 (15:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Dec 2014 00:15:02 +0000 (16:15 -0800)
There were curly braces intended here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/bdc/bdc_ep.c

index 15da5b1e76c0bc23078dc2560a9c4c8fa1398fbb..ff67ceac77c410a8f6a9ab27fc63f63afd9dc01b 100644 (file)
@@ -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;