summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-19 11:06:13 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-21 07:29:37 +0200
commitb33983f8c908b8f9a1c538ef09e8694a91498d00 (patch)
treef1ea8f904b9bbe2efd9f4a6bd7147ecbe3bdd4ef
parentscore: Delete unused CORE_RWLock_Attributes (diff)
downloadrtems-b33983f8c908b8f9a1c538ef09e8694a91498d00.tar.bz2
score: Simplify _CORE_message_queue_Do_close()
Remove superfluous _CORE_message_queue_Flush() since we completely re-initialize the structure in _CORE_message_queue_Initialize().
-rw-r--r--cpukit/score/src/coremsgclose.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/cpukit/score/src/coremsgclose.c b/cpukit/score/src/coremsgclose.c
index fd026adfc9..e070d9831a 100644
--- a/cpukit/score/src/coremsgclose.c
+++ b/cpukit/score/src/coremsgclose.c
@@ -31,8 +31,6 @@ void _CORE_message_queue_Do_close(
#endif
)
{
- ISR_lock_Context lock_context;
-
/*
* This will flush blocked threads whether they were blocked on
* a send or receive.
@@ -46,15 +44,6 @@ void _CORE_message_queue_Do_close(
mp_id
);
- /*
- * This removes all messages from the pending message queue. Since
- * we just flushed all waiting threads, we don't have to worry about
- * the flush satisfying any blocked senders as a side-effect.
- */
-
- _ISR_lock_ISR_disable( &lock_context );
- (void) _CORE_message_queue_Flush( the_message_queue, &lock_context );
-
(void) _Workspace_Free( the_message_queue->message_buffers );
_Thread_queue_Destroy( &the_message_queue->Wait_queue );