From: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io> To: haibo.chen@nxp.com, ulf.hansson@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: hardevsinh.palaniya@siliconsignals.io, Adrian Hunter <adrian.hunter@intel.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: sdhci-esdhc-imx: Fix smatch errors Date: Fri, 29 Dec 2023 18:32:07 +0530 [thread overview] Message-ID: <20231229130207.3539334-1-hardevsinh.palaniya@siliconsignals.io> (raw) 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@siliconsignals.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
WARNING: multiple messages have this Message-ID (diff)
From: Hardevsinh Palaniya <hardevsinh.palaniya@siliconsignals.io> To: haibo.chen@nxp.com, ulf.hansson@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de Cc: hardevsinh.palaniya@siliconsignals.io, Adrian Hunter <adrian.hunter@intel.com>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, NXP Linux Team <linux-imx@nxp.com>, linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] mmc: sdhci-esdhc-imx: Fix smatch errors Date: Fri, 29 Dec 2023 18:32:07 +0530 [thread overview] Message-ID: <20231229130207.3539334-1-hardevsinh.palaniya@siliconsignals.io> (raw) 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@siliconsignals.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2023-12-29 13:03 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-12-29 13:02 Hardevsinh Palaniya [this message] 2023-12-29 13:02 ` [PATCH] mmc: sdhci-esdhc-imx: Fix smatch errors Hardevsinh Palaniya 2023-12-29 14:34 ` Stefan Wahren 2023-12-29 14:34 ` Stefan Wahren 2024-01-04 7:12 ` Adrian Hunter 2024-01-04 7:12 ` Adrian Hunter
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20231229130207.3539334-1-hardevsinh.palaniya@siliconsignals.io \ --to=hardevsinh.palaniya@siliconsignals.io \ --cc=adrian.hunter@intel.com \ --cc=festevam@gmail.com \ --cc=haibo.chen@nxp.com \ --cc=kernel@pengutronix.de \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-imx@nxp.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-mmc@vger.kernel.org \ --cc=s.hauer@pengutronix.de \ --cc=shawnguo@kernel.org \ --cc=ulf.hansson@linaro.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.