[U-Boot] [PATCH] board_r: return 0 from show_model_r

Simon Glass sjg at chromium.org
Tue Apr 8 01:16:24 CEST 2014


On 4 April 2014 05:23, Paul Burton <paul.burton at imgtec.com> wrote:

> The show_model_r function should return an int but didn't. Return 0 to
> indicate inevitable success and avoid the following if it is used:
>
> common/board_r.c: In function 'show_model_r':
> common/board_r.c:531:1: warning: no return statement in function returning
> non-void [-Wreturn-type]
>  }
>  ^
>
> Cc: Simon Glass <sjg at chromium.org>
> Signed-off-by: Paul Burton <paul.burton at imgtec.com>
>

Acked-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list