[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231229130207.3539334-1-hardevsinh.palaniya@siliconsignals.io>
Date: Fri, 29 Dec 2023 18:32:07 +0530
From: Hardevsinh Palaniya <hardevsinh.palaniya@...iconsignals.io>
To: haibo.chen@....com,
ulf.hansson@...aro.org,
shawnguo@...nel.org,
s.hauer@...gutronix.de
Cc: hardevsinh.palaniya@...iconsignals.io,
Adrian Hunter <adrian.hunter@...el.com>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
NXP Linux Team <linux-imx@....com>,
linux-mmc@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] mmc: sdhci-esdhc-imx: Fix smatch errors
Resolve smatch errors in esdhc_executing_tuning()
esdhc_executing_tuning() error: uninitialized symbol 'target_min'
esdhc_executing_tuning() error: uninitialized symbol 'target_max'
Signed-off-by: Hardevsinh Palaniya <hardevsinh.palaniya@...iconsignals.io>
diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-esdhc-imx.c
index 40a6e2f8145a..839b60138f04 100644
--- a/drivers/mmc/host/sdhci-esdhc-imx.c
+++ b/drivers/mmc/host/sdhci-esdhc-imx.c
@@ -1166,6 +1166,8 @@ static int esdhc_executing_tuning(struct sdhci_host *host, u32 opcode)
min = ESDHC_TUNE_CTRL_MIN;
max = ESDHC_TUNE_CTRL_MIN;
target_win_length = 0;
+ target_min = 0;
+ target_max = 0;
while (max < ESDHC_TUNE_CTRL_MAX) {
/* find the mininum delay first which can pass tuning */
while (min < ESDHC_TUNE_CTRL_MAX) {
--
2.25.1
Powered by blists - more mailing lists