summaryrefslogtreecommitdiff
path: root/arch/sandbox/cpu/state.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-02-06 21:37:31 (GMT)
committerSimon Glass <sjg@chromium.org>2015-02-15 21:34:06 (GMT)
commit88539e4431cd6a596da316f81b644c4df606dbd9 (patch)
tree25c39cd598ff62bb20e17eb3a9c08de3f734f61d /arch/sandbox/cpu/state.c
parentd908898333b22fb2345a7a165ff837fa6b947b0b (diff)
downloadu-boot-fsl-qoriq-88539e4431cd6a596da316f81b644c4df606dbd9.tar.xz
sandbox: Return '-c command' exit value as sandbox exit code
When a command is passed into sandbox using the '-c' argument the command is run directly. This is most helpful when running tests (such as test-dm.sh). Previously the exit code was an unused enum. Change it to be the actual return code from the command so that the script calling sandbox can know if the command succeeded (tests passed). Also remove the now completely unused "exit_state" in sandbox. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/sandbox/cpu/state.c')
-rw-r--r--arch/sandbox/cpu/state.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/sandbox/cpu/state.c b/arch/sandbox/cpu/state.c
index ba73b7e..033958c 100644
--- a/arch/sandbox/cpu/state.c
+++ b/arch/sandbox/cpu/state.c
@@ -13,11 +13,6 @@
static struct sandbox_state main_state;
static struct sandbox_state *state; /* Pointer to current state record */
-void state_record_exit(enum exit_type_id exit_type)
-{
- state->exit_type = exit_type;
-}
-
static int state_ensure_space(int extra_size)
{
void *blob = state->state_fdt;