rtems: Remove _Partition_Destroy()

It was a trivial function call wrapper used only in one place.
This commit is contained in:
Sebastian Huber
2020-10-14 10:22:52 +02:00
parent 3c029026da
commit cbfacee436
2 changed files with 1 additions and 8 deletions

View File

@@ -129,13 +129,6 @@ RTEMS_INLINE_ROUTINE void _Partition_Initialize(
_ISR_lock_Initialize( &the_partition->Lock, "Partition" );
}
RTEMS_INLINE_ROUTINE void _Partition_Destroy(
Partition_Control *the_partition
)
{
_ISR_lock_Destroy( &the_partition->Lock );
}
/**
* @brief Calls _Objects_Get() using the ::_Partition_Information.
*

View File

@@ -72,7 +72,7 @@ rtems_status_code rtems_partition_delete(
}
#endif
_Partition_Destroy( the_partition );
_ISR_lock_Destroy( &the_partition->Lock );
_Objects_Free( &_Partition_Information, &the_partition->Object );
_Objects_Allocator_unlock();
return RTEMS_SUCCESSFUL;