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/+/8705

-- gerrit

commit 4c8b56bd0b1c97661e038263f95f8c63f61320c9
Author: Antonio Borneo <borneo.anto...@gmail.com>
Date:   Fri Jan 10 15:20:35 2025 +0100

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

diff --git a/src/target/target_request.c b/src/target/target_request.c
index bccae07b42..8d51dc3d60 100644
--- a/src/target/target_request.c
+++ b/src/target/target_request.c
@@ -107,7 +107,7 @@ static int target_hexmsg(struct target *target, int size, 
uint32_t length)
  */
 int target_request(struct target *target, uint32_t request)
 {
-       target_req_cmd_t target_req_cmd = request & 0xff;
+       enum target_req_cmd target_req_cmd = request & 0xff;
 
        assert(target->type->target_request_data);
 
diff --git a/src/target/target_request.h b/src/target/target_request.h
index 62d5c74b1e..97edd9ede2 100644
--- a/src/target/target_request.h
+++ b/src/target/target_request.h
@@ -17,12 +17,12 @@
 struct target;
 struct command_context;
 
-typedef enum target_req_cmd {
+enum target_req_cmd {
        TARGET_REQ_TRACEMSG,
        TARGET_REQ_DEBUGMSG,
        TARGET_REQ_DEBUGCHAR,
 /*     TARGET_REQ_SEMIHOSTING, */
-} target_req_cmd_t;
+};
 
 struct debug_msg_receiver {
        struct command_context *cmd_ctx;

-- 

Reply via email to