aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/core_intr.c
diff options
context:
space:
mode:
authorJohn Youn <John.Youn@synopsys.com>2017-01-23 14:57:26 -0800
committerFelipe Balbi <felipe.balbi@linux.intel.com>2017-01-24 16:19:07 +0200
commit95832c00bc5ce3ed140f5f9b669803f75ac1431e (patch)
tree79a97499288d9768a5e27b83dcce952d248ffd5b /drivers/usb/dwc2/core_intr.c
parentusb: dwc2: Remove platform static params (diff)
downloadlinux-dev-95832c00bc5ce3ed140f5f9b669803f75ac1431e.tar.xz
linux-dev-95832c00bc5ce3ed140f5f9b669803f75ac1431e.zip
usb: dwc2: Fix usage of bool params
Check these parameters only for true or false. There is no need to check for greater or less than 0. Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'drivers/usb/dwc2/core_intr.c')
-rw-r--r--drivers/usb/dwc2/core_intr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/dwc2/core_intr.c b/drivers/usb/dwc2/core_intr.c
index 2f161bcf5f83..b8bcb007c92a 100644
--- a/drivers/usb/dwc2/core_intr.c
+++ b/drivers/usb/dwc2/core_intr.c
@@ -160,7 +160,7 @@ static void dwc2_handle_otg_intr(struct dwc2_hsotg *hsotg)
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) {
+ hsotg->params.i2c_enable) {
hsotg->srp_success = 1;
} else {
/* Clear Session Request */