Skip to content

Commit

Permalink
firmware: efi: Remove unneeded guid unparse
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ivan Khoronzhuk authored and Matt Fleming committed Jan 20, 2015
1 parent d1a8d66 commit 613782b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/firmware/efi/efi.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,15 +277,10 @@ static __init int match_config_table(efi_guid_t *guid,
unsigned long table,
efi_config_table_type_t *table_types)
{
u8 str[EFI_VARIABLE_GUID_LEN + 1];
int i;

if (table_types) {
efi_guid_to_str(guid, str);

for (i = 0; efi_guidcmp(table_types[i].guid, NULL_GUID); i++) {
efi_guid_to_str(&table_types[i].guid, str);

if (!efi_guidcmp(*guid, table_types[i].guid)) {
*(table_types[i].ptr) = table;
pr_cont(" %s=0x%lx ",
Expand Down

0 comments on commit 613782b

Please sign in to comment.