mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
efi_loader: fix formatting errors
Fix formatting errors in efi_boottime.c indicated by scripts/checkpatch.py. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:

committed by
Alexander Graf

parent
7069515e7f
commit
ab9efa979c
@ -123,6 +123,7 @@ static const char *indent_string(int level)
|
||||
{
|
||||
const char *indent = " ";
|
||||
const int max = strlen(indent);
|
||||
|
||||
level = min(max, level * 2);
|
||||
return &indent[max - level];
|
||||
}
|
||||
@ -586,7 +587,6 @@ static efi_status_t EFIAPI efi_create_event_ext(
|
||||
notify_context, event));
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Check if a timer event has occurred or a queued notification function should
|
||||
* be called.
|
||||
@ -1332,7 +1332,8 @@ static void efi_remove_configuration_table(int i)
|
||||
* @table table to be installed
|
||||
* @return status code
|
||||
*/
|
||||
efi_status_t efi_install_configuration_table(const efi_guid_t *guid, void *table)
|
||||
efi_status_t efi_install_configuration_table(const efi_guid_t *guid,
|
||||
void *table)
|
||||
{
|
||||
int i;
|
||||
|
||||
@ -1664,7 +1665,8 @@ static efi_status_t EFIAPI efi_start_image(efi_handle_t image_handle,
|
||||
* @return status code
|
||||
*/
|
||||
static efi_status_t EFIAPI efi_exit(efi_handle_t image_handle,
|
||||
efi_status_t exit_status, unsigned long exit_data_size,
|
||||
efi_status_t exit_status,
|
||||
unsigned long exit_data_size,
|
||||
int16_t *exit_data)
|
||||
{
|
||||
/*
|
||||
@ -1815,7 +1817,8 @@ static efi_status_t EFIAPI efi_exit_boot_services(efi_handle_t image_handle,
|
||||
*/
|
||||
static efi_status_t EFIAPI efi_get_next_monotonic_count(uint64_t *count)
|
||||
{
|
||||
static uint64_t mono = 0;
|
||||
static uint64_t mono;
|
||||
|
||||
EFI_ENTRY("%p", count);
|
||||
*count = mono++;
|
||||
return EFI_EXIT(EFI_SUCCESS);
|
||||
@ -1921,8 +1924,8 @@ out:
|
||||
* @entry_count number of entries available in the buffer
|
||||
* @return status code
|
||||
*/
|
||||
static efi_status_t EFIAPI efi_open_protocol_information(efi_handle_t handle,
|
||||
const efi_guid_t *protocol,
|
||||
static efi_status_t EFIAPI efi_open_protocol_information(
|
||||
efi_handle_t handle, const efi_guid_t *protocol,
|
||||
struct efi_open_protocol_info_entry **entry_buffer,
|
||||
efi_uintn_t *entry_count)
|
||||
{
|
||||
@ -2907,15 +2910,16 @@ static const struct efi_boot_services efi_boot_services = {
|
||||
.protocols_per_handle = efi_protocols_per_handle,
|
||||
.locate_handle_buffer = efi_locate_handle_buffer,
|
||||
.locate_protocol = efi_locate_protocol,
|
||||
.install_multiple_protocol_interfaces = efi_install_multiple_protocol_interfaces,
|
||||
.uninstall_multiple_protocol_interfaces = efi_uninstall_multiple_protocol_interfaces,
|
||||
.install_multiple_protocol_interfaces =
|
||||
efi_install_multiple_protocol_interfaces,
|
||||
.uninstall_multiple_protocol_interfaces =
|
||||
efi_uninstall_multiple_protocol_interfaces,
|
||||
.calculate_crc32 = efi_calculate_crc32,
|
||||
.copy_mem = efi_copy_mem,
|
||||
.set_mem = efi_set_mem,
|
||||
.create_event_ex = efi_create_event_ex,
|
||||
};
|
||||
|
||||
|
||||
static uint16_t __efi_runtime_data firmware_vendor[] = L"Das U-Boot";
|
||||
|
||||
struct efi_system_table __efi_runtime_data systab = {
|
||||
|
Reference in New Issue
Block a user