]> xenbits.xensource.com Git - xen.git/commitdiff
xen/arm: Fix misplaced parentheses for PSCI version check
authorArtem Mygaiev <artem_mygaiev@epam.com>
Wed, 30 Nov 2016 13:53:11 +0000 (15:53 +0200)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 17 Mar 2017 19:06:43 +0000 (12:06 -0700)
Fix misplaced parentheses for PSCI version check

Signed-off-by: Artem Mygaiev <artem_mygaiev@epam.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/psci.c

index 7966b5e2dd934dc84717a837b540f4a334895292..34ee97e7ad60c55e589102cc5db3de03ff51f766 100644 (file)
@@ -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));