projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1fe197
)
ARM: hisilicon: hikey: do not rely on random stack value
author
xypron.glpk@gmx.de
<xypron.glpk@gmx.de>
Sun, 30 Jul 2017 19:30:55 +0000
(21:30 +0200)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/board/hisilicon/hikey/hikey.c
b/board/hisilicon/hikey/hikey.c
index
47bce4d
..
c513d0a
100644
(file)
--- 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