forked from Imagelibrary/rtems
rtems: Remove _Partition_Free()
It was a trivial function call wrapper used only in one place.
This commit is contained in:
@@ -136,20 +136,6 @@ RTEMS_INLINE_ROUTINE void _Partition_Destroy(
|
|||||||
_ISR_lock_Destroy( &the_partition->Lock );
|
_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.
|
* @brief Calls _Objects_Get() using the ::_Partition_Information.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ rtems_status_code rtems_partition_delete(
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
_Partition_Destroy( the_partition );
|
_Partition_Destroy( the_partition );
|
||||||
_Partition_Free( the_partition );
|
_Objects_Free( &_Partition_Information, &the_partition->Object );
|
||||||
_Objects_Allocator_unlock();
|
_Objects_Allocator_unlock();
|
||||||
return RTEMS_SUCCESSFUL;
|
return RTEMS_SUCCESSFUL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user