From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Date: Wed, 31 Jan 2018 16:38:34 +0100 Subject: [U-Boot] [PATCH 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-1-sgoldschmidt@de.pepperl-fuchs.com> <20180131134713.11566-2-sgoldschmidt@de.pepperl-fuchs.com> Message-ID: <20180131153834.mjt7lau6upkvbhtf@flea.lan> 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 Thanks! Maxime -- Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: