public inbox for linux-efi@vger.kernel.org
 help / color / mirror / Atom feed
From: Leif Lindholm <leif.lindholm-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
To: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Cc: Ivan Khoronzhuk
	<ivan.khoronzhuk-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>,
	"linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Matt Fleming
	<matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Linaro Kernel Mailman List
	<linaro-kernel-cunTk1MwBs8s++Sfvej+rw@public.gmane.org>,
	Linaro UEFI Mailman List
	<linaro-uefi-cunTk1MwBs8s++Sfvej+rw@public.gmane.org>
Subject: Re: [Linaro-uefi] [PATCH] firmware: efi: remove unneeded guid unparse
Date: Tue, 20 Jan 2015 16:39:08 +0000	[thread overview]
Message-ID: <20150120163908.GS3827@bivouac.eciton.net> (raw)
In-Reply-To: <CAKv+Gu87L6xhEbTiWSdcY6RCk3yc3nhf2bN7rMOji3znx=7uuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Tue, Jan 20, 2015 at 04:20:10PM +0000, Ard Biesheuvel wrote:
> On 20 January 2015 at 16:12, Ivan Khoronzhuk <ivan.khoronzhuk-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> 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-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
> > ---
> >  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 ",

Doh! Left the unparses in after I removed the debug printouts :|
Thanks for spotting.

Acked-by: Leif Lindholm <leif.lindholm-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>

> Acked-by: Ard Biesheuvel <ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>

/
    Leif

  parent reply	other threads:[~2015-01-20 16:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1421770352-5059-1-git-send-email-ivan.khoronzhuk@linaro.org>
     [not found] ` <1421770352-5059-1-git-send-email-ivan.khoronzhuk-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-01-20 16:20   ` [Linaro-uefi] [PATCH] firmware: efi: remove unneeded guid unparse Ard Biesheuvel
     [not found]     ` <CAKv+Gu87L6xhEbTiWSdcY6RCk3yc3nhf2bN7rMOji3znx=7uuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-01-20 16:39       ` Leif Lindholm [this message]
     [not found]         ` <20150120163908.GS3827-t77nlHhSwNqAroYi2ySoxKxOck334EZe@public.gmane.org>
2015-01-20 22:32           ` Matt Fleming

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150120163908.GS3827@bivouac.eciton.net \
    --to=leif.lindholm-qsej5fyqhm4dnm+yrofe0a@public.gmane.org \
    --cc=ard.biesheuvel-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=ivan.khoronzhuk-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
    --cc=linaro-kernel-cunTk1MwBs8s++Sfvej+rw@public.gmane.org \
    --cc=linaro-uefi-cunTk1MwBs8s++Sfvej+rw@public.gmane.org \
    --cc=linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox