aboutsummaryrefslogtreecommitdiff
path: root/src/target/adi_v5_jtag.c
diff options
context:
space:
mode:
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>2013-09-28 17:28:25 +0200
committerSpencer Oliver <spen@spen-soft.co.uk>2013-10-31 20:42:47 +0000
commit13f6c889ab9b6e5b1c4f48fca9807fdc1fb83f42 (patch)
treefd5412ade9345f19316dcbee5ea39f961f34509a /src/target/adi_v5_jtag.c
parent517ba0690dcc9e859a05df2113ce32401a5ab254 (diff)
Remove unnecessary (void *)
When pointer casts are needed, cast directly to the correct type, instead of going via void*. Don't explicitly cast to void* if it would have been done implicitly. Change-Id: I4093209200051c5eb62847d00a4b9c8567480068 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/1669 Tested-by: jenkins Reviewed-by: Mathias Küster <kesmtp@freenet.de> Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/adi_v5_jtag.c')
-rw-r--r--src/target/adi_v5_jtag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/adi_v5_jtag.c b/src/target/adi_v5_jtag.c
index 62eb7d12..7f61563f 100644
--- a/src/target/adi_v5_jtag.c
+++ b/src/target/adi_v5_jtag.c
@@ -356,7 +356,7 @@ static int jtag_idcode_q_read(struct adiv5_dap *dap,
fields[0].num_bits = 32;
fields[0].out_value = NULL;
- fields[0].in_value = (void *) data;
+ fields[0].in_value = (uint8_t *) data;
jtag_add_dr_scan(jtag_info->tap, 1, fields, TAP_IDLE);