[rtems commit] rtems: Remove _Partition_Free()

Sebastian Huber sebh at rtems.org
Mon Nov 23 09:45:31 UTC 2020


Module:    rtems
Branch:    master
Commit:    3c029026da74700c2fd4780333f13a649152b7b8
Changeset: http://git.rtems.org/rtems/commit/?id=3c029026da74700c2fd4780333f13a649152b7b8

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Oct 14 10:22:18 2020 +0200

rtems: Remove _Partition_Free()

It was a trivial function call wrapper used only in one place.

---

 cpukit/include/rtems/rtems/partimpl.h | 14 --------------
 cpukit/rtems/src/partdelete.c         |  2 +-
 2 files changed, 1 insertion(+), 15 deletions(-)

diff --git a/cpukit/include/rtems/rtems/partimpl.h b/cpukit/include/rtems/rtems/partimpl.h
index 599db29..55de7b1 100644
--- a/cpukit/include/rtems/rtems/partimpl.h
+++ b/cpukit/include/rtems/rtems/partimpl.h
@@ -137,20 +137,6 @@ RTEMS_INLINE_ROUTINE void _Partition_Destroy(
 }
 
 /**
- *  @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.
  *
  * @param id is the object identifier.
diff --git a/cpukit/rtems/src/partdelete.c b/cpukit/rtems/src/partdelete.c
index 12f6bd6..4fc71af 100644
--- a/cpukit/rtems/src/partdelete.c
+++ b/cpukit/rtems/src/partdelete.c
@@ -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;
 }



More information about the vc mailing list