From ce37d4e833d6e8da07b532e4f2e992091b09197b Mon Sep 17 00:00:00 2001 From: dragonmux Date: Tue, 26 Jul 2022 05:27:54 +0100 Subject: [PATCH] adiv5: Fix some nomenclature in adiv5_dp_init() --- src/target/adiv5.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/target/adiv5.c b/src/target/adiv5.c index 50ff6fc..e93a825 100644 --- a/src/target/adiv5.c +++ b/src/target/adiv5.c @@ -772,9 +772,9 @@ void adiv5_dp_init(ADIv5_DP_t *dp) /* Probe for APs on this DP */ uint32_t last_base = 0; - size_t void_aps = 0; + size_t invalid_aps = 0; dp->refcnt++; - for (size_t i = 0; i < 256 && void_aps < 8; ++i) { + for (size_t i = 0; i < 256 && invalid_aps < 8; ++i) { ADIv5_AP_t *ap = NULL; #if PC_HOSTED == 1 if ((!dp->ap_setup) || dp->ap_setup(i)) @@ -787,7 +787,7 @@ void adiv5_dp_init(ADIv5_DP_t *dp) if (dp->ap_cleanup) dp->ap_cleanup(i); #endif - if (++void_aps == 8) { + if (++invalid_aps == 8) { adiv5_dp_unref(dp); return; }