diff options
author | Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> | 2015-01-20 17:26:03 -0500 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2015-01-20 17:29:31 -0500 |
commit | 613782b0875269b6f849e3344a789e647414a434 (patch) | |
tree | f382d5d80b202d8d570eff7820298a2a890e9ede | |
parent | d1a8d66b9177105e898e73716f97eb61842c457a (diff) |
firmware: efi: Remove unneeded guid unparse
There is no reason to translate guid number to string here.
So remove it in order to not do unneeded work.
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Acked-by: Leif Lindholm <leif.lindholm@linaro.org>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r-- | drivers/firmware/efi/efi.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index 9bdbc0533627..f8f126812656 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c | |||
@@ -277,15 +277,10 @@ static __init int match_config_table(efi_guid_t *guid, | |||
277 | unsigned long table, | 277 | unsigned long table, |
278 | efi_config_table_type_t *table_types) | 278 | efi_config_table_type_t *table_types) |
279 | { | 279 | { |
280 | u8 str[EFI_VARIABLE_GUID_LEN + 1]; | ||
281 | int i; | 280 | int i; |
282 | 281 | ||
283 | if (table_types) { | 282 | if (table_types) { |
284 | efi_guid_to_str(guid, str); | ||
285 | |||
286 | for (i = 0; efi_guidcmp(table_types[i].guid, NULL_GUID); i++) { | 283 | for (i = 0; efi_guidcmp(table_types[i].guid, NULL_GUID); i++) { |
287 | efi_guid_to_str(&table_types[i].guid, str); | ||
288 | |||
289 | if (!efi_guidcmp(*guid, table_types[i].guid)) { | 284 | if (!efi_guidcmp(*guid, table_types[i].guid)) { |
290 | *(table_types[i].ptr) = table; | 285 | *(table_types[i].ptr) = table; |
291 | pr_cont(" %s=0x%lx ", | 286 | pr_cont(" %s=0x%lx ", |