Coverity fix: Remove GGC ignore -Warray-bounds
authorDeepika Bhavnani <deepika.bhavnani@arm.com>
Wed, 14 Aug 2019 21:56:46 +0000 (00:56 +0300)
committerDeepika Bhavnani <deepika.bhavnani@arm.com>
Fri, 16 Aug 2019 16:22:13 +0000 (19:22 +0300)
commit41af05154abe136938bcfb5f26c969933784bbef
tree486080a13018c0e46007cc9ae8e87baec55c9c7f
parentd1b6013d8485094d948e6b6039b8d119a907ecf8
Coverity fix: Remove GGC ignore -Warray-bounds

GCC diagnostics were added to ignore array boundaries, instead
of ignoring GCC warning current code will check for array boundaries
and perform and array update only for valid elements.

Resolves: `CID 246574` `CID 246710` `CID 246651`

Signed-off-by: Deepika Bhavnani <deepika.bhavnani@arm.com>
Change-Id: I7530ecf7a1707351c6ee87e90cc3d33574088f57
lib/psci/psci_common.c