From: Tom Rini Date: Tue, 30 Jan 2018 10:23:19 -0500 Subject: [U-Boot] [PATCH] env: sf: fix return value of env_sf_load In-Reply-To: <514746da-0db1-fa11-3cdc-a16fd56c7b9a@de.pepperl-fuchs.com> References: <20180130075511.31399-1-sgoldschmidt@de.pepperl-fuchs.com> <514746da-0db1-fa11-3cdc-a16fd56c7b9a@de.pepperl-fuchs.com> Message-ID: <20180130152319.GF26925@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 Tue, Jan 30, 2018 at 09:15:09AM +0100, Simon Goldschmidt wrote: > On 30.01.2018 08:55, Simon Goldschmidt wrote: > >With the recent changes to support multiple environments, I see a > >message "Failed (1)" when loading environment from sf. > > > >env_sf_load() returns the return value of env_import(). This must be > >'inverted' to return the correct meaning. > > Thinking about this again, it might be cleaner to make env_import and > env_import_redundant return 0 on success. Would that be acceptable? If it makes things look cleaner, yes, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: