jtag: Use 'unsigned int' for 'abs_chain_position'

Change-Id: I1ac0a6a86f820b051619aa132754a69b8f8e0ab9
Signed-off-by: Marc Schink <dev@zapb.de>
Reviewed-on: https://review.openocd.org/c/openocd/+/8402
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
Marc Schink
2024-07-17 16:48:14 +02:00
committed by Antonio Borneo
parent 632df9e5cb
commit 4fac13827f
5 changed files with 8 additions and 8 deletions

View File

@@ -132,7 +132,7 @@ typedef enum {
typedef struct {
struct list_head list;
int abs_chain_position;
unsigned int abs_chain_position;
/* The number of harts connected to this DM. */
int hart_count;
@@ -236,7 +236,7 @@ static dm013_info_t *get_dm(struct target *target)
if (info->dm)
return info->dm;
int abs_chain_position = target->tap->abs_chain_position;
unsigned int abs_chain_position = target->tap->abs_chain_position;
dm013_info_t *entry;
dm013_info_t *dm = NULL;