From: Julien Grall <julien.grall@linaro.org>
To: Ian Campbell <ian.campbell@citrix.com>
Cc: stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org
Subject: Re: [PATCH v2 2/2] xen: arm: fixup a couple of coding style issues
Date: Tue, 18 Mar 2014 16:01:13 +0000 [thread overview]
Message-ID: <53286DC9.4080004@linaro.org> (raw)
In-Reply-To: <1395158001-28085-2-git-send-email-ian.campbell@citrix.com>
On 03/18/2014 03:53 PM, Ian Campbell wrote:
> The if in domain.c was only syntactically valid because the macro happened to
> contain enclosing braces.
>
> Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
> ---
> xen/arch/arm/domain.c | 2 +-
> xen/arch/arm/traps.c | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/xen/arch/arm/domain.c b/xen/arch/arm/domain.c
> index 0f83e81..8f91c2e 100644
> --- a/xen/arch/arm/domain.c
> +++ b/xen/arch/arm/domain.c
> @@ -257,7 +257,7 @@ static void continue_new_vcpu(struct vcpu *prev)
>
> if ( is_idle_vcpu(current) )
> reset_stack_and_jump(idle_loop);
> - else if is_32bit_domain(current->domain)
> + else if ( is_32bit_domain(current->domain) )
> /* check_wakeup_from_wait(); */
> reset_stack_and_jump(return_to_new_vcpu32);
> else
> diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c
> index 563cc62..5d66bc4 100644
> --- a/xen/arch/arm/traps.c
> +++ b/xen/arch/arm/traps.c
> @@ -1563,12 +1563,12 @@ asmlinkage void do_trap_hypervisor(struct cpu_user_regs *regs)
> advance_pc(regs, hsr);
> break;
> case HSR_EC_CP15_32:
> - if ( ! is_32bit_domain(current->domain) )
> + if ( !is_32bit_domain(current->domain) )
> goto bad_trap;
> do_cp15_32(regs, hsr);
> break;
> case HSR_EC_CP15_64:
> - if ( ! is_32bit_domain(current->domain) )
> + if ( !is_32bit_domain(current->domain) )
> goto bad_trap;
> do_cp15_64(regs, hsr);
> break;
>
--
Julien Grall
next prev parent reply other threads:[~2014-03-18 16:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-18 15:53 [PATCH v2 2/2] xen: arm: fixup a couple of coding style issues Ian Campbell
2014-03-18 16:01 ` Julien Grall [this message]
2014-03-18 17:19 ` Ian Campbell
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=53286DC9.4080004@linaro.org \
--to=julien.grall@linaro.org \
--cc=ian.campbell@citrix.com \
--cc=stefano.stabellini@eu.citrix.com \
--cc=tim@xen.org \
--cc=xen-devel@lists.xen.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.