提交 4e283088 编写于 作者: R Roy Franz 提交者: Matt Fleming

efi: resolve warnings found on ARM compile

warnings from gcc:
warning: label 'free_pool' defined but not used [-Wunused-label]
warning: value computed is not used [-Wunused-value]
Signed-off-by: NRoy Franz <roy.franz@linaro.org>
Signed-off-by: NMatt Fleming <matt.fleming@intel.com>
上级 6a5fe770
......@@ -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:
......@@ -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;
......@@ -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++;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册