efi_loader: correct comments for efi_status_t

EFI_STATUS is unsigned (UINTN). Hence it cannot be negative.
Correct comments for 'Return:'.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Heinrich Schuchardt 2020-05-03 16:29:00 +02:00
parent bb0e585c71
commit 30f92ce9d5
3 changed files with 5 additions and 5 deletions

View file

@ -86,7 +86,7 @@ out:
/** /**
* efi_init_secure_boot - initialize secure boot state * efi_init_secure_boot - initialize secure boot state
* *
* Return: EFI_SUCCESS on success, status code (negative) on error * Return: status code
*/ */
static efi_status_t efi_init_secure_boot(void) static efi_status_t efi_init_secure_boot(void)
{ {

View file

@ -528,7 +528,7 @@ out:
* pointed to by @regs. If @nocheck is false, overlapping among entries * pointed to by @regs. If @nocheck is false, overlapping among entries
* will be checked first. * will be checked first.
* *
* Return: 0 on success, status code (negative) on error * Return: status code
*/ */
efi_status_t efi_image_region_add(struct efi_image_regions *regs, efi_status_t efi_image_region_add(struct efi_image_regions *regs,
const void *start, const void *end, const void *start, const void *end,

View file

@ -230,7 +230,7 @@ err:
* Those variables are *read-only* for users, efi_set_variable_common() * Those variables are *read-only* for users, efi_set_variable_common()
* is called here. * is called here.
* *
* Return: EFI_SUCCESS on success, status code (negative) on error * Return: status code
*/ */
static efi_status_t efi_transfer_secure_state(enum efi_secure_mode mode) static efi_status_t efi_transfer_secure_state(enum efi_secure_mode mode)
{ {
@ -284,7 +284,7 @@ err:
/** /**
* efi_init_secure_state - initialize secure boot state * efi_init_secure_state - initialize secure boot state
* *
* Return: EFI_SUCCESS on success, status code (negative) on error * Return: status code
*/ */
static efi_status_t efi_init_secure_state(void) static efi_status_t efi_init_secure_state(void)
{ {
@ -438,7 +438,7 @@ out:
* attributes and signed time will also be returned in @env_attr and @time, * attributes and signed time will also be returned in @env_attr and @time,
* respectively. * respectively.
* *
* Return: EFI_SUCCESS on success, status code (negative) on error * Return: status code
*/ */
static efi_status_t efi_variable_authenticate(u16 *variable, static efi_status_t efi_variable_authenticate(u16 *variable,
const efi_guid_t *vendor, const efi_guid_t *vendor,