]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
board_r: return 0 from show_model_r
authorPaul Burton <paul.burton@imgtec.com>
Fri, 4 Apr 2014 11:23:24 +0000 (12:23 +0100)
committerTom Rini <trini@ti.com>
Fri, 18 Apr 2014 14:42:30 +0000 (10:42 -0400)
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@chromium.org>
Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Acked-by: Simon Glass <sjg@chromium.org>
common/board_r.c

index 8629a656c28a9afe30a25c0fe3ec39a63dbf8a65..d1f0aa9b1ad12272bb657d6fabbad382d72ad746 100644 (file)
@@ -528,6 +528,7 @@ static int show_model_r(void)
 # else
        checkboard();
 # endif
+       return 0;
 }
 #endif