xen/arm: Fix misplaced parentheses for PSCI version check
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
@@ -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
Hi Artem,
Quoted 6 lines · Artem Mygaiev
Fix misplaced parentheses for PSCI version check
Coverity-ID: 1381830Signed-off-by Artem Mygaiev <[email protected]>Reviewed-by Julien Grall <[email protected]>
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
Quoted 8 lines · Julien Grall
Hi Artem,
Quoted 5 lines · Artem Mygaiev
Fix misplaced parentheses for PSCI version check
Coverity-ID: 1381830Signed-off-by Artem Mygaiev <[email protected]>
Quoted 7 lines
Quoted 1 line
Reviewed-by Julien Grall <[email protected]>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