Skip to contentSkip to conversation

xen/arm: Fix misplaced parentheses for PSCI version check

PATCH In review Artem Mygaiev 3 participants 3 messages Dec 6, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 xen/arm: Fix misplaced parentheses for PSCI version check

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

---
 xen/arch/arm/psci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/arm/psci.c +1 -1
index 7966b5e..34ee97e 100644
@@ -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
[email protected]
https://lists.xen.org/xen-devel

#1 lore raw

Hi Artem,

Quoted 6 lines · Artem Mygaiev

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

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,

Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw
Quoted 8 lines · Julien Grall

Hi Artem,

Quoted 5 lines · Artem Mygaiev

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

Quoted 7 lines
Quoted 1 line

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
[email protected]
https://lists.xen.org/xen-devel