From patchwork Mon Feb 4 19:37:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Reinhard Arlt X-Patchwork-Id: 218064 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 684DE2C02C7 for ; Tue, 5 Feb 2013 07:31:26 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 232CD4A12F; Mon, 4 Feb 2013 21:31:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Hxt1-Fz4Sd9s; Mon, 4 Feb 2013 21:31:16 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 925E54A130; Mon, 4 Feb 2013 21:31:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 6CAB14A12F for ; Mon, 4 Feb 2013 20:50:49 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qIptw32rIzOR for ; Mon, 4 Feb 2013 20:50:48 +0100 (CET) X-Greylist: delayed 763 seconds by postgrey-1.27 at theia; Mon, 04 Feb 2013 20:50:47 CET X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.187]) by theia.denx.de (Postfix) with ESMTPS id 93BF04A12E for ; Mon, 4 Feb 2013 20:50:47 +0100 (CET) Received: from comm-neu.esd (a89-183-45-232.net-htp.de [89.183.45.232]) by mrelayeu.kundenserver.de (node=mreu0) with ESMTP (Nemesis) id 0LZjFg-1UnuAo2Q9c-00lqfD; Mon, 04 Feb 2013 20:38:02 +0100 Received: from [10.0.13.98] (pc-reinhard2.esd [10.0.13.98]) by comm-neu.esd (Postfix) with ESMTP id 6C1781362D7 for ; Mon, 4 Feb 2013 20:36:43 +0100 (CET) Message-ID: <51100DE7.4040604@esd.eu> Date: Mon, 04 Feb 2013 20:37:11 +0100 From: Reinhard Arlt User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: u-boot@lists.denx.de X-Enigmail-Version: 1.4.6 X-Provags-ID: V02:K0:m1hgusDxnxNouS5bTwaGHGglsciz06QygAKT+AptJ1E +wrJ1ZuuVr1+AZWyiMFhHXBd0aDK8TabEKtOg3aVDUBI5DbdPu Oissu1qcMhys/2rxQqN6VcxnSyZEVSdQaLgl9MzezG5dfNHts2 zBY/vlW2JcbfXBZEmudQ0h4ebtr9JJMpZC4Z7FL6bybdL3nESo pvZVKZzbvcKLW4PO+eEm9gfCtv7Od+04PCQ/vA+Jp0a6SQHjHi x4k1v4K2GAY/Ov54TwP0fa6pdcz7Z7y1q9uqjb1DZ66A1K2LS1 kjkKTWKgSwWLwXYyGNvK+7UtTBOPgdafB3lA5c5fXtBAdlP7A= = X-Mailman-Approved-At: Mon, 04 Feb 2013 21:30:55 +0100 Subject: [U-Boot] [PATCH] cmd_elf:Fix broken bootvx command X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de commit d2d6bdaaef5f7eb39551e2288164b710021125fd Author: Reinhard Arlt Date: Mon Feb 4 19:45:16 2013 +0100 Fix broken bootvx command. Signed-off-by: Reinhard Arlt bootaddr = simple_strtoul(tmp, NULL, 16); diff --git a/common/cmd_elf.c b/common/cmd_elf.c index a667a46..ab9c7e3 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