From 509ce2fde4e535d1c16698b119dcce588efb758b Mon Sep 17 00:00:00 2001 From: Kinsey Moore Date: Mon, 8 Sep 2025 14:49:29 -0500 Subject: [PATCH] cpukit/flashdev: Remove unnecessary reinitialization --- cpukit/dev/flash/flashdev.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/cpukit/dev/flash/flashdev.c b/cpukit/dev/flash/flashdev.c index d3dfafee3d..482468cb67 100644 --- a/cpukit/dev/flash/flashdev.c +++ b/cpukit/dev/flash/flashdev.c @@ -510,16 +510,8 @@ static int rtems_flashdev_do_init( { rtems_recursive_mutex_init( &flash->mutex, "RTEMS_FLASHDEV Flash" ); flash->destroy = destroy; - flash->read = NULL; - flash->write = NULL; - flash->erase = NULL; - flash->jedec_id = NULL; - flash->flash_type = NULL; - flash->page_info_by_offset = NULL; - flash->page_info_by_index = NULL; - flash->page_count = NULL; - flash->write_block_size = NULL; - flash->region_table = NULL; + /* other fields are guaranteed nulled by caller */ + return 0; }