summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_watchdog.c
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2018-03-03 15:28:57 +0100
committerAlexander Graf <agraf@suse.de>2018-04-04 11:00:06 +0200
commitd7b181d57d0c7080facce755c4b9ff7a22436a48 (patch)
tree52a139264c2156434c10270b9372808f5307f7fc /lib/efi_loader/efi_watchdog.c
parent075d425d652038e67136db61ace4606fcec89475 (diff)
efi_loader: consistently return efi_status_t efi_watchdog_register
efi_watchdog_register() should always return a status code and not a boolean value. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'lib/efi_loader/efi_watchdog.c')
-rw-r--r--lib/efi_loader/efi_watchdog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/efi_loader/efi_watchdog.c b/lib/efi_loader/efi_watchdog.c
index 35a45dedf8..b1c35a8e29 100644
--- a/lib/efi_loader/efi_watchdog.c
+++ b/lib/efi_loader/efi_watchdog.c
@@ -59,7 +59,7 @@ efi_status_t efi_set_watchdog(unsigned long timeout)
*
* This function is called by efi_init_obj_list()
*/
-int efi_watchdog_register(void)
+efi_status_t efi_watchdog_register(void)
{
efi_status_t r;
@@ -85,5 +85,5 @@ int efi_watchdog_register(void)
printf("ERROR: Failed to set watchdog timer\n");
return r;
}
- return 0;
+ return EFI_SUCCESS;
}