armv7a: fix scan-build warnings
commit8f76ca05d998ad8bcebb3d634a09386ea8c54e5e
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Mon, 24 Oct 2011 22:47:21 +0000 (25 00:47 +0200)
committerØyvind Harboe <oyvindharboe@gmail.com>
Tue, 25 Oct 2011 05:16:50 +0000 (25 05:16 +0000)
treec56d93212923f2048505842349f8126dc34a876b
parentf80ec2aa3723c59528198b275a348b6b8804929a
armv7a: fix scan-build warnings

"Value stored to 'retval' is never read": Check and propagate error
"Dereference of null pointer": Probably bogus, maybe triggered by the null
check on armv7a, so remove the check since it can't be null anyway.

Change-Id: I3bc44e52af1589ff40e6a42deda0ce7f3a25e397
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/119
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
src/target/armv7a.c