]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
memory: tegra: remove redundant variable initialization
authorDiogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
Sun, 19 Mar 2023 17:13:03 +0000 (17:13 +0000)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 22 Mar 2023 17:48:46 +0000 (18:48 +0100)
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>
drivers/memory/tegra/tegra210-emc-table.c

index 3e0598363b873b30534283b78a7028c93edf35b8..34a8785d2861aa80216451f6bb64cbf543894888 100644 (file)
@@ -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;