]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
cmd_elf: Fix broken bootvx command
authorReinhard Arlt <reinhard.arlt@esd.eu>
Mon, 4 Feb 2013 09:37:11 +0000 (09:37 +0000)
committerTom Rini <trini@ti.com>
Wed, 20 Feb 2013 13:52:29 +0000 (08:52 -0500)
Fix broken bootvx command.

Signed-off-by: Reinhard Arlt <reinhard.arlt@esd.eu>
common/cmd_elf.c

index a667a469b5684b9e7cbf6979e11add18e8660f5e..ab9c7e332d97b200109e09e464b0fb786ac967c6 100644 (file)
@@ -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);