From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Thu, 1 Feb 2018 08:09:07 -0500 Subject: [U-Boot] [U-Boot, v2, 1/4] env: make env_import(_redund) return 0 on success, not 1 In-Reply-To: <20180131134713.11566-2-sgoldschmidt@de.pepperl-fuchs.com> References: <20180131134713.11566-2-sgoldschmidt@de.pepperl-fuchs.com> Message-ID: <20180201130907.GG4297@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Jan 31, 2018 at 02:47:10PM +0100, Simon Goldschmidt wrote: > env_import (and env_import_redund) currently return 1 on success > and 0 on error. However, they are only used from functions > returning 0 on success or a negative value on error. > > Let's clean this up by making env_import and env_import_redund > return 0 on success and -EIO on error (as was the case for all > users before). > > Users that cared for the return value are also updated. Funny > enough, this only affects onenand.c and sf.c > > Signed-off-by: Simon Goldschmidt > Acked-by: Maxime Ripard Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: