summaryrefslogtreecommitdiff
path: root/drivers/memory/tegra/tegra210-emc-table.c
diff options
context:
space:
mode:
authorDiogo Ivo <diogo.ivo@tecnico.ulisboa.pt>2023-03-19 20:13:03 +0300
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>2023-03-22 20:48:46 +0300
commit2ae66ecc0825b0b4707384772b848c79b0986ef5 (patch)
treee942cb2f937f5c67ea78cd8685f6d19e183e8723 /drivers/memory/tegra/tegra210-emc-table.c
parent538c7b5b5d8b5364454494e5fe4125b0b47195f1 (diff)
downloadlinux-2ae66ecc0825b0b4707384772b848c79b0986ef5.tar.xz
memory: tegra: remove redundant variable initialization
tegra210_emc_table_device_init() sets count = 0 twice, so remove the second instance. Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt> Link: https://lore.kernel.org/r/20230319171303.120777-1-diogo.ivo@tecnico.ulisboa.pt Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'drivers/memory/tegra/tegra210-emc-table.c')
-rw-r--r--drivers/memory/tegra/tegra210-emc-table.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/memory/tegra/tegra210-emc-table.c b/drivers/memory/tegra/tegra210-emc-table.c
index 3e0598363b87..34a8785d2861 100644
--- a/drivers/memory/tegra/tegra210-emc-table.c
+++ b/drivers/memory/tegra/tegra210-emc-table.c
@@ -22,8 +22,6 @@ static int tegra210_emc_table_device_init(struct reserved_mem *rmem,
return -ENOMEM;
}
- count = 0;
-
for (i = 0; i < TEGRA_EMC_MAX_FREQS; i++) {
if (timings[i].revision == 0)
break;