1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

core/mutex: uncrustify

This commit is contained in:
Marian Buschsieweke 2020-11-24 11:19:34 +01:00
parent 9127deb6fe
commit df66dd0272
No known key found for this signature in database
GPG Key ID: 61F64C6599B1539F

View File

@ -183,6 +183,7 @@ static inline void mutex_init(mutex_t *mutex)
static inline mutex_cancel_t mutex_cancel_init(mutex_t *mutex)
{
mutex_cancel_t result = { mutex, thread_get_active(), 0 };
return result;
}
@ -202,10 +203,11 @@ static inline int mutex_trylock(mutex_t *mutex)
{
unsigned irq_state = irq_disable();
int retval = 0;
if (mutex->queue.next == NULL) {
mutex->queue.next = MUTEX_LOCKED;
retval = 1;
};
}
irq_restore(irq_state);
return retval;
}