summaryrefslogtreecommitdiff
path: root/board/hisilicon/hikey/hikey.c
diff options
context:
space:
mode:
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>2017-07-30 19:30:55 (GMT)
committerTom Rini <trini@konsulko.com>2017-08-13 19:17:29 (GMT)
commit2d5e86b110e7287beba0627c41dab795e8d17aea (patch)
treea376188f41163de23f69b08930d2e3885bea2c5c /board/hisilicon/hikey/hikey.c
parentd1fe19766bc2a4c065b29a5617472c66a2696a67 (diff)
downloadu-boot-fsl-qoriq-2d5e86b110e7287beba0627c41dab795e8d17aea.tar.xz
ARM: hisilicon: hikey: do not rely on random stack value
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>
Diffstat (limited to 'board/hisilicon/hikey/hikey.c')
-rw-r--r--board/hisilicon/hikey/hikey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/hisilicon/hikey/hikey.c b/board/hisilicon/hikey/hikey.c
index 47bce4d..c513d0a 100644
--- a/board/hisilicon/hikey/hikey.c
+++ b/board/hisilicon/hikey/hikey.c
@@ -345,7 +345,7 @@ int board_init(void)
static int init_dwmmc(void)
{
- int ret;
+ int ret = 0;
#ifdef CONFIG_MMC_DW