From facbb481b806275208baca30debfd66d54bc4f9b Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Thu, 18 Nov 2021 00:25:37 +0100 Subject: [PATCH] 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 Reviewed-on: https://review.openocd.org/c/openocd/+/6719 Tested-by: jenkins Reviewed-by: Tomas Vanek --- src/flash/nor/rp2040.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/flash/nor/rp2040.c b/src/flash/nor/rp2040.c index 5b4c16bb9..fb34172d2 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,