aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2021-11-18 00:25:37 +0100
committerAntonio Borneo <borneo.antonio@gmail.com>2021-11-23 11:04:42 +0000
commitfacbb481b806275208baca30debfd66d54bc4f9b (patch)
tree43c1f8e3c9c675fd4253999701fae67eac898a6b /src
parent43ea974555de9a5bd9870a18f9f8423f1c476ea5 (diff)
downloadriscv-openocd-facbb481b806275208baca30debfd66d54bc4f9b.zip
riscv-openocd-facbb481b806275208baca30debfd66d54bc4f9b.tar.gz
riscv-openocd-facbb481b806275208baca30debfd66d54bc4f9b.tar.bz2
flash/rp2040: don't initialize to NULL fields in struct
When a struct is initialized, missing fields are already filled with zero or NULL. This change simplifies scripts to compare documentation and registered commands. Change-Id: I96fbdfa98bbb1f2b5e2a9532faf5a15cb5bc28dd Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/6719 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Diffstat (limited to 'src')
-rw-r--r--src/flash/nor/rp2040.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/flash/nor/rp2040.c b/src/flash/nor/rp2040.c
index 5b4c16b..fb34172 100644
--- a/src/flash/nor/rp2040.c
+++ b/src/flash/nor/rp2040.c
@@ -441,7 +441,6 @@ FLASH_BANK_COMMAND_HANDLER(rp2040_flash_bank_command)
struct flash_driver rp2040_flash = {
.name = "rp2040_flash",
- .commands = NULL,
.flash_bank_command = rp2040_flash_bank_command,
.erase = rp2040_flash_erase,
.write = rp2040_flash_write,