Skip to content

Commit 2ae66ec

Browse files
diogoivokrzk
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Kozlowski <[email protected]>
1 parent 538c7b5 commit 2ae66ec

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/memory/tegra/tegra210-emc-table.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ static int tegra210_emc_table_device_init(struct reserved_mem *rmem,
2222
return -ENOMEM;
2323
}
2424

25-
count = 0;
26-
2725
for (i = 0; i < TEGRA_EMC_MAX_FREQS; i++) {
2826
if (timings[i].revision == 0)
2927
break;

0 commit comments

Comments
 (0)