hw/mips_itu: fix off-by-one reported by Coverity
authorLeon Alrae <leon.alrae@imgtec.com>
Mon, 4 Apr 2016 08:59:00 +0000 (09:59 +0100)
committerLeon Alrae <leon.alrae@imgtec.com>
Fri, 8 Apr 2016 08:19:26 +0000 (09:19 +0100)
commitf2eb665a11a34ac9f6459f8a18c3d9d8be9ca359
tree35f3bcd66b55f47a4a3030e21320cede36d35167
parentead5268f2166101f7dde70598c9f538a90afd8ee
hw/mips_itu: fix off-by-one reported by Coverity

Fix off-by-one error in ITC Tag read.

Remove the switch as we just want to check if index is in valid range
rather than test against list of values.

Signed-off-by: Leon Alrae <leon.alrae@imgtec.com>
hw/misc/mips_itu.c