summaryrefslogtreecommitdiffstats
path: root/cpukit/posix/src/mutexget.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-18 17:21:43 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2016-04-21 07:29:39 +0200
commitb8bdced14d82d07965a6fa45bb80687420bdbd8a (patch)
tree751836b60c1e49e7d6befe2ace73085b3d1d373e /cpukit/posix/src/mutexget.c
parentposix: _POSIX_Condition_variables_Wait_support() (diff)
downloadrtems-b8bdced14d82d07965a6fa45bb80687420bdbd8a.tar.bz2
posix: Simplify _POSIX_Mutex_Get_interrupt_disable
Remove superfluous location parameter.
Diffstat (limited to 'cpukit/posix/src/mutexget.c')
-rw-r--r--cpukit/posix/src/mutexget.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/cpukit/posix/src/mutexget.c b/cpukit/posix/src/mutexget.c
index 5c0cc4264d..9ad226a4f9 100644
--- a/cpukit/posix/src/mutexget.c
+++ b/cpukit/posix/src/mutexget.c
@@ -68,20 +68,21 @@ POSIX_Mutex_Control *_POSIX_Mutex_Get (
_Objects_Get( &_POSIX_Mutex_Information, (Objects_Id) *mutex, location );
}
-POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable (
- pthread_mutex_t *mutex,
- Objects_Locations *location,
- ISR_lock_Context *lock_context
+POSIX_Mutex_Control *_POSIX_Mutex_Get_interrupt_disable(
+ pthread_mutex_t *mutex,
+ ISR_lock_Context *lock_context
)
{
- if ( !_POSIX_Mutex_Check_id_and_auto_init( mutex, location ) ) {
+ Objects_Locations location;
+
+ if ( !_POSIX_Mutex_Check_id_and_auto_init( mutex, &location ) ) {
return NULL;
}
return (POSIX_Mutex_Control *) _Objects_Get_isr_disable(
&_POSIX_Mutex_Information,
(Objects_Id) *mutex,
- location,
+ &location,
lock_context
);
}