[rtems commit] rtems: Remove _Partition_Destroy()
Sebastian Huber
sebh at rtems.org
Mon Nov 23 09:45:31 UTC 2020
Module: rtems
Branch: master
Commit: cbfacee436eaf8f02279fe4e0a190ecaf77be37d
Changeset: http://git.rtems.org/rtems/commit/?id=cbfacee436eaf8f02279fe4e0a190ecaf77be37d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Oct 14 10:22:52 2020 +0200
rtems: Remove _Partition_Destroy()
It was a trivial function call wrapper used only in one place.
---
cpukit/include/rtems/rtems/partimpl.h | 7 -------
cpukit/rtems/src/partdelete.c | 2 +-
2 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/cpukit/include/rtems/rtems/partimpl.h b/cpukit/include/rtems/rtems/partimpl.h
index 55de7b1..fc17311 100644
--- a/cpukit/include/rtems/rtems/partimpl.h
+++ b/cpukit/include/rtems/rtems/partimpl.h
@@ -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.
*
diff --git a/cpukit/rtems/src/partdelete.c b/cpukit/rtems/src/partdelete.c
index 4fc71af..f0d04f9 100644
--- a/cpukit/rtems/src/partdelete.c
+++ b/cpukit/rtems/src/partdelete.c
@@ -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;
More information about the vc
mailing list