From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Wed, 26 Jul 2017 12:15:30 -0400 Subject: [U-Boot] [PATCH v2 34/34] env: Adjust the load() method to return an error In-Reply-To: <20170724032009.43994-35-sjg@chromium.org> References: <20170724032009.43994-1-sjg@chromium.org> <20170724032009.43994-35-sjg@chromium.org> Message-ID: <20170726161530.GD26163@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 Sun, Jul 23, 2017 at 09:20:09PM -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: