summaryrefslogtreecommitdiffstats
path: root/lib/efi_loader/efi_console.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-10-02 06:08:26 +0200
committerAlexander Graf <agraf@suse.de>2018-10-16 16:39:38 +0200
commit6f566c231d93050e9366bc32067fdecd2aa8d8c6 (patch)
tree63d09916e5e062f1dc5b04e07672ac78fc20fd81 /lib/efi_loader/efi_console.c
parent60d798765666a2e967ef818a2a0df8ef1d0ab789 (diff)
downloadu-boot-6f566c231d93050e9366bc32067fdecd2aa8d8c6.tar.gz
u-boot-6f566c231d93050e9366bc32067fdecd2aa8d8c6.tar.xz
u-boot-6f566c231d93050e9366bc32067fdecd2aa8d8c6.zip
efi_loader: return type efi_console_register()
Use a return type that can encompass the return value. This fixes CoverityScan CID 184090. Reported-by: Tom Rini <trini@konsulko.com> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_loader/efi_console.c')
-rw-r--r--lib/efi_loader/efi_console.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/efi_loader/efi_console.c b/lib/efi_loader/efi_console.c
index 7ecdbb1666..0225222a61 100644
--- a/lib/efi_loader/efi_console.c
+++ b/lib/efi_loader/efi_console.c
@@ -1045,8 +1045,10 @@ static void EFIAPI efi_key_notify(struct efi_event *event, void *context)
* efi_console_register() - install the console protocols
*
* This function is called from do_bootefi_exec().
+ *
+ * Return: status code
*/
-int efi_console_register(void)
+efi_status_t efi_console_register(void)
{
efi_status_t r;
struct efi_object *efi_console_output_obj;