From patchwork Mon May 8 17:30:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 759735 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wM8g32WxHz9s7f for ; Tue, 9 May 2017 03:31:11 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 14CABC21C64; Mon, 8 May 2017 17:31:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 984FEC21C2A; Mon, 8 May 2017 17:31:05 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A9881C21C2A; Mon, 8 May 2017 17:31:04 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by lists.denx.de (Postfix) with ESMTPS id 4FA0DC21C27 for ; Mon, 8 May 2017 17:31:04 +0000 (UTC) Received: from LT002.fritz.box ([95.222.184.236]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0MVJze-1dXfse4Bh8-00YlQ3; Mon, 08 May 2017 19:31:03 +0200 From: Heinrich Schuchardt To: Tom Rini Date: Mon, 8 May 2017 19:30:58 +0200 Message-Id: <20170508173058.16957-1-xypron.glpk@gmx.de> X-Mailer: git-send-email 2.11.0 X-Provags-ID: V03:K0:Tri5YfEnBH0sF+bE+x3KwAD9tpUBDK3Vn+2qAA4aE2oSHB37ZYF /56Va41ck7QRfl9029JiEmFipQXL7Ri1Bw7TiUQauc5IN3Bzbdh8q57dj7rD5tT3RLYZm9I VP3nQIoKQTNaEQHOQqq8a62C2/8xKvc87ZekQaG465pSo2sdivYz3a8M/2RlhfdnC7miBOJ nnfYTAagNVh9YXkq/d65g== X-UI-Out-Filterresults: notjunk:1; V01:K0:ImgbS9BO+XA=:Hi+R6DQDPm7pgfOEVMezlu hjpV6z7b8NLr0L2RXGK6duZjwtZ3zhuPcXgoX1sBcjRp19RgeLmgAUGHrzg6oOivphZOa/OB2 rig3H6vO1Ym4HrGK9+DGbXOcxLYbCfJqLaNpVCK4v0SMF5FtoPeQvmMN5FNnv26dH6DL/DWDd IpaJCfszYwvNg/5lHzCGtf9F98zyDf4mz7KUyEzehH8mUklk0fNDEKfG16KltvQExHWJEzX2T 6Eg45/oWEHn3omzcqSiceeNuUiI24AUjLyljVmkCg/uRnphKHo9Rcomwc/P9+0GWl+qngaAWQ er56FplBOIZeMeMBSj6MWEJqi6XXPhZ/c4b2vgNQA+HgaOY0bVWbdYbYRybAJGhN28duAb4UZ oZbunbP64bf68TPShbd7/IKfDzE1KDs5nH1P5CdxqOYUCJfl4HSBI2SW5B6QKZb+EGfTenkrH scGJ3xywxD6pVvjmqBQPF0NaD28b4Ieu0caz3X2FWVdxflEtlM8LuREglpsRcYtU3Fj5+K1fY OcREbLFul1RzRozYxtkSN3vc/eQ7lx2mRoMIRlnTr6sJJFTYNos0p7Nxx5u/A9xIyQOAIMhuA fe0lkn2KWQpWN1Qvh/PIsJujfvBh4vyRTKj909kh0mrHFKXSeZHtMFettY5ywgel/EjgMxhTH +9bR4oxcc23KwyaDP/oCtLZPQJ+H4dmTG3/+oIacKhf4cTEm7m00nO+JV9lK+ZMU+vzHnyXzi 9UfRZvmhECrsPXJaLEhfB3Pf3zxPnldh2G+SuFEnDVRkMI4hXXFYOc6ibxg= Cc: u-boot@lists.denx.de, Heinrich Schuchardt Subject: [U-Boot] [PATCH 1/1] env: correct sign for error code X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Error codes should be negative. Signed-off-by: Heinrich Schuchardt --- common/env_attr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/env_attr.c b/common/env_attr.c index 5bfe5e3a89..386219087b 100644 --- a/common/env_attr.c +++ b/common/env_attr.c @@ -153,7 +153,7 @@ static int regex_callback(const char *name, const char *attributes, void *priv) } } else { printf("Error compiling regex: %s\n", slre.err_str); - retval = EINVAL; + retval = -EINVAL; } done: return retval;