xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2] xen/arm: Fix misplaced parentheses for PSCI version check
@ 2016-12-06 13:57 Artem Mygaiev
  2016-12-06 14:03 ` Julien Grall
  0 siblings, 1 reply; 3+ messages in thread
From: Artem Mygaiev @ 2016-12-06 13:57 UTC (permalink / raw)
  To: xen-devel@lists.xenproject.org; +Cc: Julien Grall, Stefano Stabellini

Fix misplaced parentheses for PSCI version check
Coverity-ID: 1381830

Signed-off-by: Artem Mygaiev <artem_mygaiev@epam.com>

Reviewed-by: Julien Grall <julien.grall@arm.com>

---
 xen/arch/arm/psci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/arm/psci.c b/xen/arch/arm/psci.c
index 7966b5e..34ee97e 100644
--- a/xen/arch/arm/psci.c
+++ b/xen/arch/arm/psci.c
@@ -147,7 +147,7 @@ int __init psci_init_0_2(void)
     psci_ver = call_smc(PSCI_0_2_FN_PSCI_VERSION, 0, 0, 0);

     /* For the moment, we only support PSCI 0.2 and PSCI 1.x */
-    if ( psci_ver != PSCI_VERSION(0, 2) && PSCI_VERSION_MAJOR(psci_ver != 1) )
+    if ( psci_ver != PSCI_VERSION(0, 2) && PSCI_VERSION_MAJOR(psci_ver) != 1 )
     {
         printk("Error: Unrecognized PSCI version %u.%u\n",
                PSCI_VERSION_MAJOR(psci_ver), PSCI_VERSION_MINOR(psci_ver));


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCHv2] xen/arm: Fix misplaced parentheses for PSCI version check
  2016-12-06 13:57 [PATCHv2] xen/arm: Fix misplaced parentheses for PSCI version check Artem Mygaiev
@ 2016-12-06 14:03 ` Julien Grall
  2016-12-06 18:44   ` Stefano Stabellini
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Grall @ 2016-12-06 14:03 UTC (permalink / raw)
  To: Artem Mygaiev, xen-devel@lists.xenproject.org; +Cc: Stefano Stabellini

Hi Artem,

On 06/12/16 13:57, Artem Mygaiev wrote:
> Fix misplaced parentheses for PSCI version check
> Coverity-ID: 1381830
>
> Signed-off-by: Artem Mygaiev <artem_mygaiev@epam.com>
>
> Reviewed-by: Julien Grall <julien.grall@arm.com>

It looks like that Stefano already queued this patch in xen-arm-next.

Although, the Coverity-ID has not been added as I requested. Stefano, 
I'd like to have a tag with the coverity ID when it is relevant. It 
makes easier to track what has been fixed or not.

Cheers,

-- 
Julien Grall

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCHv2] xen/arm: Fix misplaced parentheses for PSCI version check
  2016-12-06 14:03 ` Julien Grall
@ 2016-12-06 18:44   ` Stefano Stabellini
  0 siblings, 0 replies; 3+ messages in thread
From: Stefano Stabellini @ 2016-12-06 18:44 UTC (permalink / raw)
  To: Julien Grall
  Cc: Artem Mygaiev, xen-devel@lists.xenproject.org, Stefano Stabellini

On Tue, 6 Dec 2016, Julien Grall wrote:
> Hi Artem,
> 
> On 06/12/16 13:57, Artem Mygaiev wrote:
> > Fix misplaced parentheses for PSCI version check
> > Coverity-ID: 1381830
> > 
> > Signed-off-by: Artem Mygaiev <artem_mygaiev@epam.com>
> > 
> > Reviewed-by: Julien Grall <julien.grall@arm.com>
> 
> It looks like that Stefano already queued this patch in xen-arm-next.
> 
> Although, the Coverity-ID has not been added as I requested. Stefano, I'd like
> to have a tag with the coverity ID when it is relevant. It makes easier to
> track what has been fixed or not.
 
I agree. This one was already committed, but let's do it from now on.

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-12-06 18:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-12-06 13:57 [PATCHv2] xen/arm: Fix misplaced parentheses for PSCI version check Artem Mygaiev
2016-12-06 14:03 ` Julien Grall
2016-12-06 18:44   ` Stefano Stabellini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).