Skip to content

Commit

Permalink
efi: resolve warnings found on ARM compile
Browse files Browse the repository at this point in the history
warnings from gcc:
warning: label 'free_pool' defined but not used [-Wunused-label]
warning: value computed is not used [-Wunused-value]

Signed-off-by: Roy Franz <roy.franz@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
  • Loading branch information
Roy Franz authored and Matt Fleming committed Sep 25, 2013
1 parent 6a5fe77 commit 4e28308
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/firmware/efi/efi-stub-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,6 @@ static efi_status_t efi_high_alloc(efi_system_table_t *sys_table_arg,
*addr = max_addr;
}

free_pool:
efi_call_phys1(sys_table_arg->boottime->free_pool, map);

fail:
Expand Down Expand Up @@ -244,7 +243,6 @@ static efi_status_t efi_low_alloc(efi_system_table_t *sys_table_arg,
if (i == map_size / desc_size)
status = EFI_NOT_FOUND;

free_pool:
efi_call_phys1(sys_table_arg->boottime->free_pool, map);
fail:
return status;
Expand Down Expand Up @@ -360,7 +358,7 @@ static efi_status_t handle_cmdline_files(efi_system_table_t *sys_table_arg,

if (*str == '/') {
*p++ = '\\';
*str++;
str++;
} else {
*p++ = *str++;
}
Expand Down

0 comments on commit 4e28308

Please sign in to comment.