]> git.sur5r.net Git - openocd/commit
adi_v5: Remove strange IDCODE check from dap info handler
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sun, 16 Feb 2014 01:22:41 +0000 (02:22 +0100)
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>
Sat, 28 Jun 2014 09:25:48 +0000 (09:25 +0000)
commit9ec211de1ce1f87f0aa424d44fc5b6956a4eb72a
tree134e84e7b74aff8342cfa856c0d85d87b0938c96
parent31138437c38348711a1890f9d39f73f4e5e989d5
adi_v5: Remove strange IDCODE check from dap info handler

Otherwise it breaks SWD targets. The check seems really weird anyway since
it loops through *all* TAPs after the ADIv5 target but doesn't do anything
at all with the result, other than not setting the return values despite
returning ERROR_OK.

Remove a bogus initialization that was needed because of the odd
behaviour of this routine when an IDCODE wasn't found.

Change-Id: Ic086352f6af868b3406b00420291a0a671e3acac
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1953
Tested-by: jenkins
Reviewed-by: Paul Fertser <fercerpav@gmail.com>
src/target/arm_adi_v5.c