Re: [Linaro-uefi] [PATCH] firmware: efi: remove unneeded guid unparse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 20 January 2015 at 16:12, Ivan Khoronzhuk <ivan.khoronzhuk@xxxxxxxxxx> wrote:
> 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@xxxxxxxxxx>
> ---
>  drivers/firmware/efi/efi.c | 5 -----
>  1 file changed, 5 deletions(-)
>
> diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c
> index 9035c1b..f6be017 100644
> --- a/drivers/firmware/efi/efi.c
> +++ b/drivers/firmware/efi/efi.c
> @@ -272,15 +272,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_unparse(guid, str);
> -
>                 for (i = 0; efi_guidcmp(table_types[i].guid, NULL_GUID); i++) {
> -                       efi_guid_unparse(&table_types[i].guid, str);
> -
>                         if (!efi_guidcmp(*guid, table_types[i].guid)) {
>                                 *(table_types[i].ptr) = table;
>                                 pr_cont(" %s=0x%lx ",

Acked-by: Ard Biesheuvel <ard.biesheuvel@xxxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux