Eliminate duplicated code in the handle_mw_command memory write loop.
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 30 May 2009 23:57:30 +0000 (23:57 +0000)
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Sat, 30 May 2009 23:57:30 +0000 (23:57 +0000)
commit58e31916def8db0e0b082b71d05c821428175bfd
tree9ba2d0680db36c49cba9669e9e74e4da5dcf8588
parent335fee3f36bd491197f8bd987baa6a7390f1750d
Eliminate duplicated code in the handle_mw_command memory write loop.
- wordsize will always be 1, 2, or 4 due to preceeding switch statement.
- move call to keep_alive after successful writes, not upon failures

git-svn-id: svn://svn.berlios.de/openocd/trunk@1953 b42882b7-edfa-0310-969c-e2dbd0fdcd60
src/target/target.c