From: Tom Rini Date: Wed, 26 Jul 2017 13:44:07 -0400 Subject: [U-Boot] [PATCH v3 24/24] env: Adjust the load() method to return an error In-Reply-To: <20170726171948.160445-25-sjg@chromium.org> References: <20170726171948.160445-1-sjg@chromium.org> <20170726171948.160445-25-sjg@chromium.org> Message-ID: <20170726174407.GM26163@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, Jul 26, 2017 at 11:19:48AM -0600, Simon Glass wrote: > The load() methods have inconsistent behaviour on error. Some of them load > an empty default environment. Some load an environment containing an error > message. Others do nothing. > > As a step in the right direction, have the method return an error code. > Then the caller could handle this itself in a consistent way. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: