linux-tegra.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] memory: tegra: remove redundant variable initialization
@ 2023-03-19 17:13 Diogo Ivo
  2023-03-22 17:49 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 2+ messages in thread
From: Diogo Ivo @ 2023-03-19 17:13 UTC (permalink / raw)
  To: diogo.ivo, krzysztof.kozlowski, thierry.reding, jonathanh, linux-tegra

tegra210_emc_table_device_init() sets count = 0 twice, so
remove the second instance.

Signed-off-by: Diogo Ivo <diogo.ivo@tecnico.ulisboa.pt>
---
 drivers/memory/tegra/tegra210-emc-table.c | 2 --
 1 file changed, 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;
-- 
2.40.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] memory: tegra: remove redundant variable initialization
  2023-03-19 17:13 [PATCH] memory: tegra: remove redundant variable initialization Diogo Ivo
@ 2023-03-22 17:49 ` Krzysztof Kozlowski
  0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Kozlowski @ 2023-03-22 17:49 UTC (permalink / raw)
  To: thierry.reding, jonathanh, Diogo Ivo, linux-tegra; +Cc: Krzysztof Kozlowski

On Sun, 19 Mar 2023 17:13:03 +0000, Diogo Ivo wrote:
> tegra210_emc_table_device_init() sets count = 0 twice, so
> remove the second instance.
> 
> 

Applied, thanks!

[1/1] memory: tegra: remove redundant variable initialization
      https://git.kernel.org/krzk/linux-mem-ctrl/c/2ae66ecc0825b0b4707384772b848c79b0986ef5

Best regards,
-- 
Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-03-22 17:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-19 17:13 [PATCH] memory: tegra: remove redundant variable initialization Diogo Ivo
2023-03-22 17:49 ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).