Skip to content
Snippets Groups Projects
Commit 2d5e86b1 authored by xypron.glpk@gmx.de's avatar xypron.glpk@gmx.de Committed by Tom Rini
Browse files

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: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent d1fe1976
No related branches found
No related tags found
No related merge requests found
......@@ -345,7 +345,7 @@ int board_init(void)
static int init_dwmmc(void)
{
int ret;
int ret = 0;
#ifdef CONFIG_MMC_DW
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment