bcm27xx: switch to 5.15
[openwrt/staging/chunkeey.git] / target / linux / bcm27xx / patches-5.10 / 950-0524-dwc-otg-fix-clang-Wsometimes-uninitialized-warning.patch
1 From bb876407b553af0fd55b2b07f0261d1f02eae6c1 Mon Sep 17 00:00:00 2001
2 From: Jo Henke <37883863+jo-he@users.noreply.github.com>
3 Date: Tue, 6 Apr 2021 11:38:28 +0000
4 Subject: [PATCH] dwc-otg: fix clang -Wsometimes-uninitialized warning
5
6 warning: variable 'retval' is used uninitialized whenever 'if' condition is false
7 ---
8 drivers/usb/host/dwc_otg/dwc_otg_cil_intr.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 --- a/drivers/usb/host/dwc_otg/dwc_otg_cil_intr.c
12 +++ b/drivers/usb/host/dwc_otg/dwc_otg_cil_intr.c
13 @@ -805,7 +805,7 @@ static int32_t dwc_otg_handle_pwrdn_sess
14 */
15 static uint32_t dwc_otg_handle_pwrdn_stschng_intr(dwc_otg_device_t *otg_dev)
16 {
17 - int retval;
18 + uint32_t retval = 0;
19 gpwrdn_data_t gpwrdn = {.d32 = 0 };
20 gpwrdn_data_t gpwrdn_temp = {.d32 = 0 };
21 dwc_otg_core_if_t *core_if = otg_dev->core_if;