aboutsummaryrefslogtreecommitdiff
path: root/src/adiv5_jtagdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/adiv5_jtagdp.c')
-rw-r--r--src/adiv5_jtagdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/adiv5_jtagdp.c b/src/adiv5_jtagdp.c
index e85462b..68bcddd 100644
--- a/src/adiv5_jtagdp.c
+++ b/src/adiv5_jtagdp.c
@@ -49,7 +49,7 @@ static uint32_t adiv5_jtagdp_low_access(ADIv5_DP_t *dp, uint8_t APnDP, uint8_t R
void adiv5_jtag_dp_handler(jtag_dev_t *dev)
{
- ADIv5_DP_t *dp = (void*)calloc(1, sizeof(ADIv5_DP_t));
+ ADIv5_DP_t *dp = (void*)calloc(1, sizeof(*dp));
dp->dev = dev;
dp->idcode = dev->idcode;