]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: hisilicon: hikey: do not rely on random stack value
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Sun, 30 Jul 2017 19:30:55 +0000 (21:30 +0200)
committerTom Rini <trini@konsulko.com>
Sun, 13 Aug 2017 19:17:29 +0000 (15:17 -0400)
If CONFIG_MMC_DW is not defined the return value of
init_dwmmc should not rely on a random stack value.

Instead indicate that no error occured.

The problem was indicated by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
board/hisilicon/hikey/hikey.c

index 47bce4daa63652382343e05ff94770271e1d7caf..c513d0af10a6059b9256b5f44ad82bdaa031a3a9 100644 (file)
@@ -345,7 +345,7 @@ int board_init(void)
 
 static int init_dwmmc(void)
 {
-       int ret;
+       int ret = 0;
 
 #ifdef CONFIG_MMC_DW