diff options
author | John Youn <John.Youn@synopsys.com> | 2017-01-23 14:57:26 -0800 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-01-24 16:19:07 +0200 |
commit | 95832c00bc5ce3ed140f5f9b669803f75ac1431e (patch) | |
tree | 79a97499288d9768a5e27b83dcce952d248ffd5b /drivers/usb/dwc2/core_intr.c | |
parent | 7de1debcd2de17c6dc2471f0f57fb0fd456d2b41 (diff) | |
download | linux-95832c00bc5ce3ed140f5f9b669803f75ac1431e.tar.gz linux-95832c00bc5ce3ed140f5f9b669803f75ac1431e.tar.bz2 linux-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.c | 2 |
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 */ |