Alex Shi e160cc1768 vexpress/spc: fix a build warning on array bounds
With ARCH_VEXPRESS_SPC option, kernel build has the following
warning:

arch/arm/mach-vexpress/spc.c: In function ‘ve_spc_clk_init’:
arch/arm/mach-vexpress/spc.c:431:38: warning: array subscript is below array bounds [-Warray-bounds]
  struct ve_spc_opp *opps = info->opps[cluster];
                                      ^
since 'cluster' maybe '-1' in UP system. This patch does a active
checking to fix this issue.

Signed-off-by: Alex Shi <alex.shi@linaro.org>
Acked-by: Pawel Moll <pawel.moll@arm.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
2014-08-31 10:22:10 -07:00
..
2014-08-27 15:12:22 -07:00
2014-08-09 14:07:59 +01:00
2014-08-08 11:14:29 -07:00
2014-08-25 18:46:31 -07:00
2014-07-07 22:42:24 -07:00
2014-08-08 11:00:26 -07:00
2014-08-08 11:00:26 -07:00
2014-08-08 11:00:26 -07:00
2014-08-08 11:00:26 -07:00
2014-07-23 00:51:30 +02:00
2014-08-08 11:14:29 -07:00