mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-11-16 12:34:45 +00:00
cpukit/flashdev: Remove unnecessary reinitialization
This commit is contained in:
committed by
Gedare Bloom
parent
c4b62666c7
commit
509ce2fde4
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user