usb: dwc2: Fix logical continuations
authorJohn Youn <John.Youn@synopsys.com>
Wed, 18 Jan 2017 04:31:28 +0000 (20:31 -0800)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Tue, 24 Jan 2017 09:04:19 +0000 (11:04 +0200)
Fix the formatting of logical statements to end the line with the
logical operator.

Signed-off-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/core_intr.c
drivers/usb/dwc2/hcd_ddma.c
drivers/usb/dwc2/hcd_queue.c

index 0d4a2aaaa5dd9700b7f3838f9adfa62f84bce400..2f161bcf5f835fc94231b3392220f4084b81ea96 100644 (file)
@@ -159,9 +159,8 @@ static void dwc2_handle_otg_intr(struct dwc2_hsotg *hsotg)
                        " ++OTG Interrupt: Session Request Success Status Change++\n");
                gotgctl = dwc2_readl(hsotg->regs + GOTGCTL);
                if (gotgctl & GOTGCTL_SESREQSCS) {
-                       if (hsotg->params.phy_type ==
-                                       DWC2_PHY_TYPE_PARAM_FS
-                           && hsotg->params.i2c_enable > 0) {
+                       if (hsotg->params.phy_type == DWC2_PHY_TYPE_PARAM_FS &&
+                           hsotg->params.i2c_enable > 0) {
                                hsotg->srp_success = 1;
                        } else {
                                /* Clear Session Request */
index db4876c9b5d634a260a584ba7fbbfedb5dd91f3e..4341f7578caa205d70da609a43c604b1df4a3a23 100644 (file)
@@ -89,8 +89,8 @@ static int dwc2_desc_list_alloc(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh,
 {
        struct kmem_cache *desc_cache;
 
-       if (qh->ep_type == USB_ENDPOINT_XFER_ISOC
-           && qh->dev_speed == USB_SPEED_HIGH)
+       if (qh->ep_type == USB_ENDPOINT_XFER_ISOC &&
+           qh->dev_speed == USB_SPEED_HIGH)
                desc_cache = hsotg->desc_hsisoc_cache;
        else
                desc_cache = hsotg->desc_gen_cache;
@@ -123,8 +123,8 @@ static void dwc2_desc_list_free(struct dwc2_hsotg *hsotg, struct dwc2_qh *qh)
 {
        struct kmem_cache *desc_cache;
 
-       if (qh->ep_type == USB_ENDPOINT_XFER_ISOC
-           && qh->dev_speed == USB_SPEED_HIGH)
+       if (qh->ep_type == USB_ENDPOINT_XFER_ISOC &&
+           qh->dev_speed == USB_SPEED_HIGH)
                desc_cache = hsotg->desc_hsisoc_cache;
        else
                desc_cache = hsotg->desc_gen_cache;
index 06d036f608f181a792a55c1899e8f820196dde6c..faf45dfbf652b968337b03d64509a2567f992d79 100644 (file)
@@ -76,9 +76,8 @@ static int dwc2_periodic_channel_available(struct dwc2_hsotg *hsotg)
        int num_channels;
 
        num_channels = hsotg->params.host_channels;
-       if (hsotg->periodic_channels + hsotg->non_periodic_channels <
-                                                               num_channels
-           && hsotg->periodic_channels < num_channels - 1) {
+       if ((hsotg->periodic_channels + hsotg->non_periodic_channels <
+            num_channels) && (hsotg->periodic_channels < num_channels - 1)) {
                status = 0;
        } else {
                dev_dbg(hsotg->dev,