mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-21 14:41:31 +00:00
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>
This commit is contained in:
parent
60d7987656
commit
6f566c231d
2 changed files with 4 additions and 2 deletions
|
@ -236,7 +236,7 @@ efi_status_t efi_root_node_register(void);
|
||||||
/* Called by bootefi to initialize runtime */
|
/* Called by bootefi to initialize runtime */
|
||||||
efi_status_t efi_initialize_system_table(void);
|
efi_status_t efi_initialize_system_table(void);
|
||||||
/* Called by bootefi to make console interface available */
|
/* Called by bootefi to make console interface available */
|
||||||
int efi_console_register(void);
|
efi_status_t efi_console_register(void);
|
||||||
/* Called by bootefi to make all disk storage accessible as EFI objects */
|
/* Called by bootefi to make all disk storage accessible as EFI objects */
|
||||||
efi_status_t efi_disk_register(void);
|
efi_status_t efi_disk_register(void);
|
||||||
/* Create handles and protocols for the partitions of a block device */
|
/* Create handles and protocols for the partitions of a block device */
|
||||||
|
|
|
@ -1045,8 +1045,10 @@ static void EFIAPI efi_key_notify(struct efi_event *event, void *context)
|
||||||
* efi_console_register() - install the console protocols
|
* efi_console_register() - install the console protocols
|
||||||
*
|
*
|
||||||
* This function is called from do_bootefi_exec().
|
* 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;
|
efi_status_t r;
|
||||||
struct efi_object *efi_console_output_obj;
|
struct efi_object *efi_console_output_obj;
|
||||||
|
|
Loading…
Add table
Reference in a new issue