linux/drivers/memory/tegra
Nathan Chancellor 0e1bcf2c05 memory: tegra30-emc: Remove unnecessary of_node_put in tegra_emc_probe
Clang warns:

  drivers/memory/tegra/tegra30-emc.c:1275:15: warning: variable 'np' is uninitialized when used here [-Wuninitialized]
                of_node_put(np);
                            ^~
  drivers/memory/tegra/tegra30-emc.c:1269:24: note: initialize the variable 'np' to silence this warning

There does not need to be an of_node_put call in this error handling
block after the shuffling of the np assignment. Remove it so there is
no use of uninitialized memory.

Fixes: 5e00fd90183a ("memory: tegra30-emc: Continue probing if timings are missing in device-tree")
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/20201119195244.1517236-1-natechancellor@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2020-11-26 18:50:37 +01:00
..
Kconfig memory: tegra30-emc: Make driver modular 2020-11-26 18:50:36 +01:00
Makefile memory: tegra: Add EMC scaling sequence code for Tegra210 2020-06-22 13:54:57 +02:00
mc.c memory: tegra30-emc: Make driver modular 2020-11-26 18:50:36 +01:00
mc.h memory: tegra-mc: Add interconnect framework 2020-11-26 18:50:35 +01:00
tegra20-emc.c memory: tegra20-emc: Add devfreq support 2020-11-26 18:50:36 +01:00
tegra20.c memory: tegra20: Support interconnect framework 2020-11-26 18:50:36 +01:00
tegra30-emc.c memory: tegra30-emc: Remove unnecessary of_node_put in tegra_emc_probe 2020-11-26 18:50:37 +01:00
tegra30.c memory: tegra30: Add FIFO sizes to memory clients 2020-11-26 18:50:36 +01:00
tegra114.c memory: tegra: Add missing latency allowness entry for Page Table Cache 2020-11-26 18:50:35 +01:00
tegra124-emc.c memory: tegra: Use devm_platform_ioremap_resource() 2020-11-26 18:50:35 +01:00
tegra124.c memory: tegra: Add missing latency allowness entry for Page Table Cache 2020-11-26 18:50:35 +01:00
tegra186-emc.c memory: tegra186-emc: Simplify with dev_err_probe() 2020-09-02 17:22:56 +02:00
tegra186.c memory: tegra: Avoid unused function warnings 2020-06-22 13:54:58 +02:00
tegra210-emc-cc-r21021.c memory: tegra: Delete duplicated argument to '|' in function tegra210_emc_r21021_periodic_compensation 2020-09-09 09:00:22 +02:00
tegra210-emc-core.c memory: tegra: Add and use devm_tegra_memory_controller_get() 2020-11-26 18:50:29 +01:00
tegra210-emc-table.c memory: tegra: Support derated timings on Tegra210 2020-06-22 13:54:57 +02:00
tegra210-emc.h memory: tegra: Drop <linux/clk-provider.h> 2020-06-22 13:54:58 +02:00
tegra210-mc.h memory: tegra: Add EMC scaling support code for Tegra210 2020-06-22 13:54:57 +02:00
tegra210.c memory: tegra: Complete tegra210_swgroups 2020-11-26 18:50:37 +01:00