MISRA fixes for AMU/SPE and SVE
Change-Id: I38470528111410cf12b187eb1397d87b812c9416
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>
diff --git a/lib/extensions/sve/sve.c b/lib/extensions/sve/sve.c
index dfabf5e..6442487 100644
--- a/lib/extensions/sve/sve.c
+++ b/lib/extensions/sve/sve.c
@@ -21,7 +21,7 @@
{
uint64_t cptr;
- if (!sve_supported())
+ if (sve_supported() == 0)
return (void *)-1;
/*
@@ -46,7 +46,7 @@
{
uint64_t cptr;
- if (!sve_supported())
+ if (sve_supported() == 0)
return (void *)-1;
/*
@@ -67,7 +67,7 @@
{
uint64_t cptr;
- if (!sve_supported())
+ if (sve_supported() == 0)
return;
#if CTX_INCLUDE_FPREGS