Skip to content

Commit

Permalink
memory: tegra: remove redundant variable initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
diogoivo authored and krzk committed Mar 22, 2023
1 parent 538c7b5 commit 2ae66ec
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/memory/tegra/tegra210-emc-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2ae66ec

Please sign in to comment.