diff options
author | Roy Franz <roy.franz@linaro.org> | 2013-09-22 18:45:42 -0400 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-09-25 07:34:45 -0400 |
commit | 4e283088bd9af0ff119d6e15bca81a83d6e8e30c (patch) | |
tree | 59f20975a54105f17761a3c821d73ff2d7995d46 | |
parent | 6a5fe770d32811ffacefaa2a430cc067ecc7336c (diff) |
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: Roy Franz <roy.franz@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | drivers/firmware/efi/efi-stub-helper.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/firmware/efi/efi-stub-helper.c b/drivers/firmware/efi/efi-stub-helper.c index 4252d01089b2..cc0581daa9ed 100644 --- a/drivers/firmware/efi/efi-stub-helper.c +++ b/drivers/firmware/efi/efi-stub-helper.c | |||
@@ -170,7 +170,6 @@ again: | |||
170 | *addr = max_addr; | 170 | *addr = max_addr; |
171 | } | 171 | } |
172 | 172 | ||
173 | free_pool: | ||
174 | efi_call_phys1(sys_table_arg->boottime->free_pool, map); | 173 | efi_call_phys1(sys_table_arg->boottime->free_pool, map); |
175 | 174 | ||
176 | fail: | 175 | fail: |
@@ -244,7 +243,6 @@ static efi_status_t efi_low_alloc(efi_system_table_t *sys_table_arg, | |||
244 | if (i == map_size / desc_size) | 243 | if (i == map_size / desc_size) |
245 | status = EFI_NOT_FOUND; | 244 | status = EFI_NOT_FOUND; |
246 | 245 | ||
247 | free_pool: | ||
248 | efi_call_phys1(sys_table_arg->boottime->free_pool, map); | 246 | efi_call_phys1(sys_table_arg->boottime->free_pool, map); |
249 | fail: | 247 | fail: |
250 | return status; | 248 | return status; |
@@ -360,7 +358,7 @@ static efi_status_t handle_cmdline_files(efi_system_table_t *sys_table_arg, | |||
360 | 358 | ||
361 | if (*str == '/') { | 359 | if (*str == '/') { |
362 | *p++ = '\\'; | 360 | *p++ = '\\'; |
363 | *str++; | 361 | str++; |
364 | } else { | 362 | } else { |
365 | *p++ = *str++; | 363 | *p++ = *str++; |
366 | } | 364 | } |