aboutsummaryrefslogtreecommitdiff
path: root/board/amcc/bamboo/bamboo.c
diff options
context:
space:
mode:
authorMasahiro Yamada2016-09-06 22:17:38 +0900
committerTom Rini2016-09-23 17:53:53 -0400
commit63a7578e4e7dc906e75b0bec5a2f3fe41c3720f4 (patch)
tree3c8e952ed36bd39aa138f5edf476e17d73fbea63 /board/amcc/bamboo/bamboo.c
parent7dc0789579b17859c61c085e4562b7985f05cc4d (diff)
arch, board: squash lines for immediate return
Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Minkyu Kang <mk7.kang@samsung.com> Reviewed-by: Angelo Dureghello <angelo@sysam.it>
Diffstat (limited to 'board/amcc/bamboo/bamboo.c')
-rw-r--r--board/amcc/bamboo/bamboo.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/board/amcc/bamboo/bamboo.c b/board/amcc/bamboo/bamboo.c
index c8d09636abc..2838f9a1edd 100644
--- a/board/amcc/bamboo/bamboo.c
+++ b/board/amcc/bamboo/bamboo.c
@@ -438,11 +438,7 @@ int checkboard(void)
phys_size_t initdram (int board_type)
{
- long dram_size;
-
- dram_size = spd_sdram();
-
- return dram_size;
+ return spd_sdram();
}
/*----------------------------------------------------------------------------+