]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ARM: tegra: fix variable naming in query_sdram_size()
authorStephen Warren <swarren@nvidia.com>
Tue, 23 Dec 2014 17:34:50 +0000 (10:34 -0700)
committerLothar Waßmann <LW@KARO-electronics.de>
Tue, 1 Sep 2015 12:10:26 +0000 (14:10 +0200)
commit90e780890b7b6ee9349e2b1dd3da687fdd470b82
treee906cce7c2558fd6d53fca3aca39d1cac80bc22c
parentf4cf42c8a6ceafc90afe3b010f1063188e0f8598
ARM: tegra: fix variable naming in query_sdram_size()

size_mb is used to hold a value that's sometimes KB, sometimes MB,
and sometimes bytes. Use separate correctly named variables to avoid
confusion here. Also fix indentation of a conditional statement.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
arch/arm/mach-tegra/board.c