]> git.sur5r.net Git - openocd/commit
arm_adi_v5: fix return value of mem_ap_read/write for size 0
authorTomas Vanek <vanekt@fbl.cz>
Thu, 18 Jan 2018 08:58:55 +0000 (09:58 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Mon, 29 Jan 2018 14:47:40 +0000 (14:47 +0000)
commitdd890d4cad7c62a65d0efd04c5e0b700eeb5928d
treedf1ede1bfe3260370fd35f7ca679f9bb78dc685f
parent1ac0f5d4937ef573a4adb3eafe883ad327c440ce
arm_adi_v5: fix return value of mem_ap_read/write for size 0

Unhandled marginal case produced a warning in Clang static analyzer.

Change-Id: I3e2fc4182fa4f863acfb972b1e7a512fce5bf33a
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Suggested-by: Matthias Welwarsky <matthias@welwarsky.de>
Reviewed-on: http://openocd.zylin.com/4357
Tested-by: jenkins
Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
src/target/arm_adi_v5.c