From 803754cfbb90da1102cb14c1add7c0165f9dbb6d Mon Sep 17 00:00:00 2001 From: Ajay Agarwal Date: Thu, 11 Mar 2021 10:23:37 +0530 Subject: [PATCH] usb: dwc3-msm: Initialize ssphy0_sus and ssphy1_sus with false Initialize ssphy0_sus and ssphy1_sus with false to fix KW complaint of using uninitialized variables. Change-Id: Ie7faef2edc88d724fdabc505f5cd66b7886864f9 Signed-off-by: Ajay Agarwal --- drivers/usb/dwc3/dwc3-msm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/dwc3-msm.c b/drivers/usb/dwc3/dwc3-msm.c index f3a5d746a25d..eb0924e535ad 100644 --- a/drivers/usb/dwc3/dwc3-msm.c +++ b/drivers/usb/dwc3/dwc3-msm.c @@ -2716,7 +2716,7 @@ static int dwc3_msm_prepare_suspend(struct dwc3_msm *mdwc, bool ignore_p3_state) struct dwc3 *dwc = platform_get_drvdata(mdwc->dwc3); unsigned long timeout; u32 reg = 0; - bool ssphy0_sus, ssphy1_sus; + bool ssphy0_sus = false, ssphy1_sus = false; /* Allow SSPHY(s) to go to P3 state if SSPHY autosuspend is disabled */ if (dwc->dis_u3_susphy_quirk) {