diff options
author | Paul Menzel <paulepanter@users.sourceforge.net> | 2015-04-05 18:30:05 +0200 |
---|---|---|
committer | Aaron Durbin <adurbin@gmail.com> | 2015-04-06 02:21:26 +0200 |
commit | 9484f5577e65192808f8752552f7f1de22e48a27 (patch) | |
tree | 225d588d7818678e9ab1f598c97e053bdff28bd6 | |
parent | e19c8b0091022ae3f490601aed0c290cd5171b79 (diff) |
arch/arm64/boot.c: Only return if condition is met
Fix up commit b3847e64 (program loading: add prog_run() function),
which misses the braces for the if statement, causing the function
also to return if a non-payload program should be run causing the rest
of the stages never to be run.
Change-Id: I04940b218ba71e82af769c8db574528f830d0cbb
Found-by: Coverity, CID 1293136: Control flow issues (NESTING_INDENT_MISMATCH)
Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-on: http://review.coreboot.org/9306
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@gmail.com>
-rw-r--r-- | src/arch/arm64/boot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/arch/arm64/boot.c b/src/arch/arm64/boot.c index 312ffdddc9..f62ceb66ef 100644 --- a/src/arch/arm64/boot.c +++ b/src/arch/arm64/boot.c @@ -68,9 +68,10 @@ void arch_prog_run(struct prog *prog) void (*doit)(void *); void *arg; - if (ENV_RAMSTAGE && prog->type == PROG_PAYLOAD) + if (ENV_RAMSTAGE && prog->type == PROG_PAYLOAD) { run_payload(prog); return; + } doit = prog_entry(prog); arg = prog_entry_arg(prog); |