target/arm946e: add missing error detection 76/5376/2
authorTomas Vanek <vanekt@fbl.cz>
Fri, 20 Dec 2019 22:43:55 +0000 (23:43 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Thu, 16 Jan 2020 09:45:19 +0000 (09:45 +0000)
commit5dd5cf26bd18ddaacbdbded881cfbefacda71631
tree6f4bf1ee6c4a52280c458140c3636073c4455acf
parent98a8b99ef37542dc34e1b247d9946a127d4ab70d
target/arm946e: add missing error detection

Discoverd by clang static analyzer.
While on it remove useless type casts from arm946e_read_cp15() parameter.

Change-Id: I549e19685b431400243800ee0f7d1bbe6cdb14b4
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/5376
Tested-by: jenkins
Reviewed-by: Oleksij Rempel <linux@rempel-privat.de>
src/target/arm946e.c