Check run_command() return code properly
authorThomas Betker <thomas.betker@freenet.de>
Thu, 5 Jun 2014 18:07:56 +0000 (20:07 +0200)
committerTom Rini <trini@ti.com>
Wed, 11 Jun 2014 20:25:47 +0000 (16:25 -0400)
commit73671dad49bf2368959b7bf0e30ba931ea95565c
treeab8bfdab55cc81119814c5eb4a6ff782e88b3705
parent32e2c42a83e8676511e178e0285ea634bc4564fd
Check run_command() return code properly

run_command() returns 0 for success, 1 for failure. Fix places which
assume that failure is indicated by a negative return code.

Signed-off-by: Thomas Betker <thomas.betker@rohde-schwarz.com>
Acked-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Tested-by: Stefan Roese <sr@denx.de>
arch/arm/cpu/arm926ejs/kirkwood/cpu.c
board/gdsys/p1022/controlcenterd.c
common/cmd_bootm.c