summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/hcd_queue.c
diff options
context:
space:
mode:
authorJohn Youn <John.Youn@synopsys.com>2017-01-17 20:31:28 -0800
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-01-24 11:04:19 +0200
commitab2832028f07f19da9587310d3a6978dc4a34d61 (patch)
tree04b0e3329eef8c8779e7eb8f64da129951f17292 /drivers/usb/dwc2/hcd_queue.c
parent38beaec6fc8857c7e2dd1dd05975ed5211281f38 (diff)
downloadlinux-ab2832028f07f19da9587310d3a6978dc4a34d61.tar.gz
linux-ab2832028f07f19da9587310d3a6978dc4a34d61.tar.bz2
linux-ab2832028f07f19da9587310d3a6978dc4a34d61.zip
usb: dwc2: Fix logical continuations
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>
Diffstat (limited to 'drivers/usb/dwc2/hcd_queue.c')
-rw-r--r--drivers/usb/dwc2/hcd_queue.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/dwc2/hcd_queue.c b/drivers/usb/dwc2/hcd_queue.c
index 06d036f608f1..faf45dfbf652 100644
--- a/drivers/usb/dwc2/hcd_queue.c
+++ b/drivers/usb/dwc2/hcd_queue.c
@@ -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,