usb: dtc_otg: pcd: fix misleading indentation warning 76/292576/1
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 3 May 2023 05:28:45 +0000 (14:28 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 8 May 2023 09:39:04 +0000 (18:39 +0900)
Fix build warning for -Wmisleading-indentation.

Change-Id: I95f0d5b85d0b3826b53a4f68166a7824930c799c
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/amlogic/usb/dwc_otg/310/dwc_otg_pcd_intr.c

index cd503c6..be77a85 100644 (file)
@@ -4310,48 +4310,48 @@ do { \
                                                                if (doepint_temp.b.sr)
                                                                        CLEAR_OUT_EP_INTR(core_if, epnum, sr);
 
-                                                                       /* Delay is needed for core to update setup
-                                                                        * packet count from 3 to 2 after receiving
-                                                                        * setup packet*/
-                                                                       dwc_udelay(100);
-                                                                       doepint.d32 = DWC_READ_REG32(&core_if->dev_if->
-                                                                                                                                       out_ep_regs[0]->doepint);
-                                                                       if (doeptsize0.b.supcnt == 3) {
-                                                                               DWC_DEBUGPL(DBG_ANY, "Rolling over!!!!!!!\n");
-                                                                               ep->dwc_ep.stp_rollover = 1;
-                                                                       }
-                                                                       if (doepint.b.setup) {
+                                                               /* Delay is needed for core to update setup
+                                                                * packet count from 3 to 2 after receiving
+                                                                * setup packet*/
+                                                               dwc_udelay(100);
+                                                               doepint.d32 = DWC_READ_REG32(&core_if->dev_if->
+                                                                                                                               out_ep_regs[0]->doepint);
+                                                               if (doeptsize0.b.supcnt == 3) {
+                                                                       DWC_DEBUGPL(DBG_ANY, "Rolling over!!!!!!!\n");
+                                                                       ep->dwc_ep.stp_rollover = 1;
+                                                               }
+                                                               if (doepint.b.setup) {
 retry:
-                                                                               /* Already started data stage, clear setup */
-                                                                               CLEAR_OUT_EP_INTR(core_if, epnum, setup);
-                                                                               doepint.b.setup = 0;
-                                                                               handle_ep0(pcd);
-                                                                               ep->dwc_ep.stp_rollover = 0;
-                                                                               /* Prepare for more setup packets */
-                                                                               if (pcd->ep0state == EP0_IN_STATUS_PHASE ||
-                                                                                       pcd->ep0state == EP0_IN_DATA_PHASE) {
-                                                                                       depctl_data_t depctl = {.d32 = 0};
-                                                                                       depctl.b.cnak = 1;
-                                                                                       ep0_out_start(core_if, pcd);
-                                                                                       /* Core not updating setup packet count
-                                                                                        * in case of PET testing - @TODO vahrama
-                                                                                        * to check with HW team further */
-                                                                                       if (!core_if->otg_ver)
-                                                                                               DWC_MODIFY_REG32(&core_if->dev_if->
-                                                                                                       out_ep_regs[0]->doepctl, 0, depctl.d32);
-
-                                                                               }
-                                                                               goto exit_xfercompl;
-                                                                       } else {
-                                                                               /* Prepare for more setup packets */
-                                                                               DWC_DEBUGPL(DBG_ANY,
-                                                                                       "EP0_IDLE SR=1 setup=0 new setup comes\n");
-                                                                               doepint.d32 = DWC_READ_REG32(&core_if->dev_if->
-                                                                                                                                       out_ep_regs[0]->doepint);
-                                                                               if (doepint.b.setup)
-                                                                                       goto retry;
+                                                                       /* Already started data stage, clear setup */
+                                                                       CLEAR_OUT_EP_INTR(core_if, epnum, setup);
+                                                                       doepint.b.setup = 0;
+                                                                       handle_ep0(pcd);
+                                                                       ep->dwc_ep.stp_rollover = 0;
+                                                                       /* Prepare for more setup packets */
+                                                                       if (pcd->ep0state == EP0_IN_STATUS_PHASE ||
+                                                                               pcd->ep0state == EP0_IN_DATA_PHASE) {
+                                                                               depctl_data_t depctl = {.d32 = 0};
+                                                                               depctl.b.cnak = 1;
                                                                                ep0_out_start(core_if, pcd);
+                                                                               /* Core not updating setup packet count
+                                                                                * in case of PET testing - @TODO vahrama
+                                                                                * to check with HW team further */
+                                                                               if (!core_if->otg_ver)
+                                                                                       DWC_MODIFY_REG32(&core_if->dev_if->
+                                                                                               out_ep_regs[0]->doepctl, 0, depctl.d32);
+
                                                                        }
+                                                                       goto exit_xfercompl;
+                                                               } else {
+                                                                       /* Prepare for more setup packets */
+                                                                       DWC_DEBUGPL(DBG_ANY,
+                                                                               "EP0_IDLE SR=1 setup=0 new setup comes\n");
+                                                                       doepint.d32 = DWC_READ_REG32(&core_if->dev_if->
+                                                                                                                               out_ep_regs[0]->doepint);
+                                                                       if (doepint.b.setup)
+                                                                               goto retry;
+                                                                       ep0_out_start(core_if, pcd);
+                                                               }
                                                        } else {
                                                                dwc_otg_pcd_request_t *req;
                                                                diepint_data_t diepint0 = {.d32 = 0};