ARM: OMAP: Kill warning in CPUIDLE code with !CONFIG_SMP
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Mon, 17 Feb 2014 07:52:55 +0000 (13:22 +0530)
committerTony Lindgren <tony@atomide.com>
Fri, 21 Feb 2014 23:16:56 +0000 (15:16 -0800)
commit865da01cd98d67518befe854a71e432d894db279
tree04306ef855db921187d505359865904d834bc808
parentdeff82e688a278eb4b822fd616c05fc62907bb71
ARM: OMAP: Kill warning in CPUIDLE code with !CONFIG_SMP

for non SMP build, NR_CPUS is 1 and hence the code complains with below
warnings.

arch/arm/mach-omap2/cpuidle44xx.c:207:8: warning: array subscript is above array bounds [-Warray-bounds]
arch/arm/mach-omap2/cpuidle44xx.c:212:11: warning: array subscript is above array bounds [-Warray-bounds]

Kill it by making array size fixed.

Acked-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/cpuidle44xx.c