cpukit/flashdev: Remove unnecessary reinitialization

This commit is contained in:
Kinsey Moore
2025-09-08 14:49:29 -05:00
committed by Gedare Bloom
parent c4b62666c7
commit 509ce2fde4

View File

@@ -510,16 +510,8 @@ static int rtems_flashdev_do_init(
{ {
rtems_recursive_mutex_init( &flash->mutex, "RTEMS_FLASHDEV Flash" ); rtems_recursive_mutex_init( &flash->mutex, "RTEMS_FLASHDEV Flash" );
flash->destroy = destroy; flash->destroy = destroy;
flash->read = NULL; /* other fields are guaranteed nulled by caller */
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;
return 0; return 0;
} }