[U-Boot] [PATCH v2 16/32] dm: cbfs: Fix handling of invalid type

Simon Glass sjg at chromium.org
Sun Mar 13 02:53:03 CET 2016


On 29 February 2016 at 15:25, Simon Glass <sjg at chromium.org> wrote:
> The comment for file_cbfs_type() says that it returns 0 for an invalid type.
> The code appears to check for -1, except that it uses an unsigned variable
> to store the type. This results in a warning on 64-bit machines.
>
> Adjust it to make the meaning clearer. Continue to handle the -1 case since
> it may be needed.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2:
> - Bring the 'case 0' from a later patch into this one
>
>  cmd/cbfs.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)

Applied to u-boot-dm/next.


More information about the U-Boot mailing list