summaryrefslogtreecommitdiff
path: root/lib_avr32/bootm.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_avr32/bootm.c')
-rw-r--r--lib_avr32/bootm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib_avr32/bootm.c b/lib_avr32/bootm.c
index 8a6109d..03ab8d1 100644
--- a/lib_avr32/bootm.c
+++ b/lib_avr32/bootm.c
@@ -176,7 +176,9 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
void (*theKernel)(int magic, void *tagtable);
struct tag *params, *params_start;
char *commandline = getenv("bootargs");
- int ret;
+
+ if ((flag != 0) && (flag != BOOTM_STATE_OS_GO))
+ return 1;
theKernel = (void *)images->ep;
@@ -202,6 +204,6 @@ int do_bootm_linux(int flag, int argc, char *argv[], bootm_headers_t *images)
theKernel(ATAG_MAGIC, params_start);
/* does not return */
-error:
+
return 1;
}