All of lore.kernel.org
 help / color / mirror / Atom feed
From: Corey Minyard <cminyard@mvista.com>
To: Cao jin <caoj.fnst@cn.fujitsu.com>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, kraxel@redhat.com, mst@redhat.com
Subject: Re: [Qemu-trivial] [PATCH] fw_cfg: follow CODING_STYLE
Date: Wed, 18 May 2016 09:36:47 -0500	[thread overview]
Message-ID: <573C7DFF.1090504@mvista.com> (raw)
In-Reply-To: <1463569176-32122-1-git-send-email-caoj.fnst@cn.fujitsu.com>

On 05/18/2016 05:59 AM, Cao jin wrote:
> Replace tab with 4 spaces; brace the indented statement.

Thanks, I think I have my editor set up to avoid the tab/space issue from
now on.  I'm going to have to handle kernel/qemu switching in my brain
for the brace issue.

Acked-by: Corey Minyard <cminyard@mvista.com>

> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
> ---
>   hw/nvram/fw_cfg.c | 17 +++++++++++------
>   1 file changed, 11 insertions(+), 6 deletions(-)
>
> diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c
> index 999f480..826181a 100644
> --- a/hw/nvram/fw_cfg.c
> +++ b/hw/nvram/fw_cfg.c
> @@ -728,15 +728,20 @@ static int get_fw_cfg_order(FWCfgState *s, const char *name)
>   {
>       int i;
>   
> -    if (s->fw_cfg_order_override > 0)
> -	return s->fw_cfg_order_override;
> +    if (s->fw_cfg_order_override > 0) {
> +        return s->fw_cfg_order_override;
> +    }
>   
>       for (i = 0; i < ARRAY_SIZE(fw_cfg_order); i++) {
> -	if (fw_cfg_order[i].name == NULL)
> -	    continue;
> -	if (strcmp(name, fw_cfg_order[i].name) == 0)
> -	    return fw_cfg_order[i].order;
> +        if (fw_cfg_order[i].name == NULL) {
> +            continue;
> +        }
> +
> +        if (strcmp(name, fw_cfg_order[i].name) == 0) {
> +            return fw_cfg_order[i].order;
> +        }
>       }
> +
>       /* Stick unknown stuff at the end. */
>       error_report("warning: Unknown firmware file in legacy mode: %s\n", name);
>       return FW_CFG_ORDER_OVERRIDE_LAST;



WARNING: multiple messages have this Message-ID (diff)
From: Corey Minyard <cminyard@mvista.com>
To: Cao jin <caoj.fnst@cn.fujitsu.com>, qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, kraxel@redhat.com, mst@redhat.com
Subject: Re: [Qemu-devel] [PATCH] fw_cfg: follow CODING_STYLE
Date: Wed, 18 May 2016 09:36:47 -0500	[thread overview]
Message-ID: <573C7DFF.1090504@mvista.com> (raw)
In-Reply-To: <1463569176-32122-1-git-send-email-caoj.fnst@cn.fujitsu.com>

On 05/18/2016 05:59 AM, Cao jin wrote:
> Replace tab with 4 spaces; brace the indented statement.

Thanks, I think I have my editor set up to avoid the tab/space issue from
now on.  I'm going to have to handle kernel/qemu switching in my brain
for the brace issue.

Acked-by: Corey Minyard <cminyard@mvista.com>

> Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
> ---
>   hw/nvram/fw_cfg.c | 17 +++++++++++------
>   1 file changed, 11 insertions(+), 6 deletions(-)
>
> diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c
> index 999f480..826181a 100644
> --- a/hw/nvram/fw_cfg.c
> +++ b/hw/nvram/fw_cfg.c
> @@ -728,15 +728,20 @@ static int get_fw_cfg_order(FWCfgState *s, const char *name)
>   {
>       int i;
>   
> -    if (s->fw_cfg_order_override > 0)
> -	return s->fw_cfg_order_override;
> +    if (s->fw_cfg_order_override > 0) {
> +        return s->fw_cfg_order_override;
> +    }
>   
>       for (i = 0; i < ARRAY_SIZE(fw_cfg_order); i++) {
> -	if (fw_cfg_order[i].name == NULL)
> -	    continue;
> -	if (strcmp(name, fw_cfg_order[i].name) == 0)
> -	    return fw_cfg_order[i].order;
> +        if (fw_cfg_order[i].name == NULL) {
> +            continue;
> +        }
> +
> +        if (strcmp(name, fw_cfg_order[i].name) == 0) {
> +            return fw_cfg_order[i].order;
> +        }
>       }
> +
>       /* Stick unknown stuff at the end. */
>       error_report("warning: Unknown firmware file in legacy mode: %s\n", name);
>       return FW_CFG_ORDER_OVERRIDE_LAST;

  reply	other threads:[~2016-05-18 17:35 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-18 10:59 [Qemu-trivial] [PATCH] fw_cfg: follow CODING_STYLE Cao jin
2016-05-18 10:59 ` [Qemu-devel] " Cao jin
2016-05-18 14:36 ` Corey Minyard [this message]
2016-05-18 14:36   ` Corey Minyard
2016-05-19 12:40   ` [Qemu-trivial] " Markus Armbruster
2016-05-19 12:40     ` Markus Armbruster
2016-05-29  8:35 ` [Qemu-trivial] " Michael Tokarev
2016-05-29  8:35   ` [Qemu-devel] " Michael Tokarev

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=573C7DFF.1090504@mvista.com \
    --to=cminyard@mvista.com \
    --cc=caoj.fnst@cn.fujitsu.com \
    --cc=kraxel@redhat.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.