From: Tom Rini Date: Fri, 10 Mar 2017 10:10:22 -0500 Subject: [U-Boot] do_smhload: fix return code In-Reply-To: <1488476716-1429-1-git-send-email-ryan.harkin@linaro.org> References: <1488476716-1429-1-git-send-email-ryan.harkin@linaro.org> Message-ID: <20170310151022.GU19897@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 Thu, Mar 02, 2017 at 05:45:16PM +0000, Ryan Harkin wrote: > do_smhload was using a ulong to store the return value from > smh_load_file. That returns an int, where -1 indicates an error. As a > ulong will never be negative, smh_load_file errors were not detected and > so_smhload always returned zero. > > Also, when errors were spotted, do_smhload was returning 1, rather than > the enumeration CMD_RET_FAILURE (which is also 1). > > Signed-off-by: Ryan Harkin > Reviewed-by: Linus Walleij 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: Digital signature URL: