Commit 479cb7cf authored by Colin Ian King's avatar Colin Ian King Committed by Ulf Hansson

mmc: dw_mmc-exynos: remove redundant initialization of variable 'found'

The variable 'found' is being initialized with a value that is never read
and it is being updated later with a new value.  The initialization is
redundant and can be removed.

Addresses-Coverity: ("Unused value")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20200706163031.503431-1-colin.king@canonical.comSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 2f961265
......@@ -474,7 +474,7 @@ static int dw_mci_exynos_execute_tuning(struct dw_mci_slot *slot, u32 opcode)
struct dw_mci_exynos_priv_data *priv = host->priv;
struct mmc_host *mmc = slot->mmc;
u8 start_smpl, smpl, candiates = 0;
s8 found = -1;
s8 found;
int ret = 0;
start_smpl = dw_mci_exynos_get_clksmpl(host);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment