forked from Imagelibrary/rtems
rtems: Remove _Partition_Destroy()
It was a trivial function call wrapper used only in one place.
This commit is contained in:
@@ -129,13 +129,6 @@ RTEMS_INLINE_ROUTINE void _Partition_Initialize(
|
|||||||
_ISR_lock_Initialize( &the_partition->Lock, "Partition" );
|
_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.
|
* @brief Calls _Objects_Get() using the ::_Partition_Information.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ rtems_status_code rtems_partition_delete(
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_Partition_Destroy( the_partition );
|
_ISR_lock_Destroy( &the_partition->Lock );
|
||||||
_Objects_Free( &_Partition_Information, &the_partition->Object );
|
_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