Commit 1b3e0b19 authored by Reinhard Arlt's avatar Reinhard Arlt Committed by Tom Rini

cmd_elf: Fix broken bootvx command

Fix broken bootvx command.
Signed-off-by: default avatarReinhard Arlt <reinhard.arlt@esd.eu>
parent 70d7cb92
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment