From: Eric Nelson Date: Mon, 28 Nov 2016 05:26:18 -0700 Subject: [U-Boot] [PATCH RESEND] imx-common: hab: fix return value from hab_auth_img In-Reply-To: <1480260463-1517-1-git-send-email-eric@nelint.com> References: <1480260463-1517-1-git-send-email-eric@nelint.com> Message-ID: <76059ea2-e648-ec67-ce2b-47e81385f1e2@nelint.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi all, On 11/27/2016 08:27 AM, Eric Nelson wrote: > The authenticate_image routine returns a boolean to indicate > a valid (1) or invalid (0) image. > An off-list discussion highlighted that the expected return value from the authenticate_image() routine isn't obvious since there isn't any user in main-line except the "hab_auth_img" command. My understanding was gleaned from this use in the NXP tree: http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/drivers/usb/gadget/f_fastboot.c?id=m6.0.1_2.1.0-ga#n1727