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.antonio@gmail.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/8705
Reviewed-by: zapb <dev@zapb.de>
Tested-by: jenkins
This commit is contained in:
Antonio Borneo 2025-01-10 15:20:35 +01:00
parent c50b541471
commit 894a39eda3
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;