]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
firmware: efi: Remove unneeded guid unparse
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Tue, 20 Jan 2015 22:26:03 +0000 (22:26 +0000)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 20 Jan 2015 22:29:31 +0000 (22:29 +0000)
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>
drivers/firmware/efi/efi.c

index 9bdbc0533627d5e9a3a01b81b2b083ac06a3fda5..f8f126812656705a4ed21409613f20fdf80c19b6 100644 (file)
@@ -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 ",