summaryrefslogtreecommitdiff
path: root/common/cmd_elf.c
diff options
context:
space:
mode:
authorReinhard Arlt <reinhard.arlt@esd.eu>2013-02-04 09:37:11 +0000
committerTom Rini <trini@ti.com>2013-02-20 08:52:29 -0500
commit1b3e0b191a3b93dee79226a276748c6e9aa1d071 (patch)
tree9af0b4d3bc8645a2f8edfe412ff9c78233f875c5 /common/cmd_elf.c
parent70d7cb92528c88b7e0db841d94383d8d0fb350f3 (diff)
cmd_elf: Fix broken bootvx command
Fix broken bootvx command. Signed-off-by: Reinhard Arlt <reinhard.arlt@esd.eu>
Diffstat (limited to 'common/cmd_elf.c')
-rw-r--r--common/cmd_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_elf.c b/common/cmd_elf.c
index a667a469b56..ab9c7e332d9 100644
--- a/common/cmd_elf.c
+++ b/common/cmd_elf.c
@@ -198,7 +198,7 @@ int do_bootvx(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
* defaults to 0x4200
*/
tmp = getenv("bootaddr");
- if (tmp)
+ if (!tmp)
bootaddr = CONFIG_SYS_VXWORKS_BOOT_ADDR;
else
bootaddr = simple_strtoul(tmp, NULL, 16);