This is an automated email from Gerrit.

"Antonio Borneo <borneo.anto...@gmail.com>" just uploaded a new patch set to 
Gerrit, which you can find at https://review.openocd.org/c/openocd/+/8708

-- gerrit

commit a87418662e6eeba9c2e395a3b261373ad658f787
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Fri Jan 10 15:26:50 2025 +0100

    jtag: openjtag: drop useless typedef openjtag_tap_state_t
    
    No need to use a typedef for an enum.
    Drop it.
    
    Change-Id: I31531b80eaf7f3d0ee6cd22844e60a05c6b748dc
    Signed-off-by: Antonio Borneo <borneo.anto...@gmail.com>

diff --git a/src/jtag/drivers/openjtag.c b/src/jtag/drivers/openjtag.c
index 0ae885e871..a3fbd204eb 100644
--- a/src/jtag/drivers/openjtag.c
+++ b/src/jtag/drivers/openjtag.c
@@ -50,7 +50,7 @@ static const char * const openjtag_variant_names[] = {
 /*
  * OpenJTAG-OpenOCD state conversion
  */
-typedef enum openjtag_tap_state {
+enum openjtag_tap_state {
        OPENJTAG_TAP_INVALID    = -1,
        OPENJTAG_TAP_RESET  = 0,
        OPENJTAG_TAP_IDLE   = 1,
@@ -68,7 +68,7 @@ typedef enum openjtag_tap_state {
        OPENJTAG_TAP_PAUSE_IR   = 13,
        OPENJTAG_TAP_EXIT2_IR   = 14,
        OPENJTAG_TAP_UPDATE_IR  = 15,
-} openjtag_tap_state_t;
+};
 
 /* OPENJTAG access library includes */
 #include "libftdi_helper.h"

-- 

Reply via email to