From 1aa1a3598a799f7ccf4b68bc6ed9d482ec6adb00 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Tue, 9 Aug 2022 07:13:59 +0100 Subject: [PATCH] stm32g0: Removed some needless casts from the command list build --- src/target/stm32g0.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/target/stm32g0.c b/src/target/stm32g0.c index 8e86bb3..8267775 100644 --- a/src/target/stm32g0.c +++ b/src/target/stm32g0.c @@ -168,10 +168,10 @@ static bool stm32g0_cmd_option(target *t, int argc, const char **argv); static bool stm32g0_cmd_irreversible(target *t, int argc, const char **argv); const struct command_s stm32g0_cmd_list[] = { - { "erase_bank 1|2", (cmd_handler)stm32g0_cmd_erase_bank, "Erase specified Flash bank" }, - { "option", (cmd_handler)stm32g0_cmd_option, "Manipulate option bytes" }, - { "irreversible", (cmd_handler)stm32g0_cmd_irreversible, "Allow irreversible operations: (enable|disable)" }, - { NULL, NULL, NULL } + { "erase_bank 1|2", stm32g0_cmd_erase_bank, "Erase specified Flash bank" }, + { "option", stm32g0_cmd_option, "Manipulate option bytes" }, + { "irreversible", stm32g0_cmd_irreversible, "Allow irreversible operations: (enable|disable)" }, + { NULL, NULL, NULL }, }; static void stm32g0_add_flash(target *t, uint32_t addr, size_t length,