diff --git a/src/target/adiv5.c b/src/target/adiv5.c index ebdebfc..cdbd1fa 100644 --- a/src/target/adiv5.c +++ b/src/target/adiv5.c @@ -846,8 +846,7 @@ void adiv5_dp_init(ADIv5_DP_t *dp, const uint32_t idcode) dp->ap_cleanup(i); #endif if (++invalid_aps == 8) { - adiv5_dp_unref(dp); - return; + break; } continue; }