rtems: Remove _Partition_Free()

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

View File

@@ -136,20 +136,6 @@ RTEMS_INLINE_ROUTINE void _Partition_Destroy(
_ISR_lock_Destroy( &the_partition->Lock );
}
/**
* @brief Frees a partition control block to the
* inactive chain of free partition control blocks.
*
* This routine frees a partition control block to the
* inactive chain of free partition control blocks.
*/
RTEMS_INLINE_ROUTINE void _Partition_Free (
Partition_Control *the_partition
)
{
_Objects_Free( &_Partition_Information, &the_partition->Object );
}
/**
* @brief Calls _Objects_Get() using the ::_Partition_Information.
*

View File

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