提交 1b3e0b19 编写于 作者: R Reinhard Arlt 提交者: Tom Rini

cmd_elf: Fix broken bootvx command

Fix broken bootvx command.
Signed-off-by: NReinhard Arlt <reinhard.arlt@esd.eu>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册