Fixed style issues, as pointed by Axel
This commit is contained in:
@@ -21,7 +21,7 @@ void
|
|||||||
mtx_init(struct mtx *mutex, const char *name, const char *type,
|
mtx_init(struct mtx *mutex, const char *name, const char *type,
|
||||||
int options)
|
int options)
|
||||||
{
|
{
|
||||||
if (options & MTX_RECURSE) {
|
if ((options & MTX_RECURSE) != 0) {
|
||||||
recursive_lock_init_etc(&mutex->u.recursive, name,
|
recursive_lock_init_etc(&mutex->u.recursive, name,
|
||||||
MUTEX_FLAG_CLONE_NAME);
|
MUTEX_FLAG_CLONE_NAME);
|
||||||
} else {
|
} else {
|
||||||
@@ -36,7 +36,7 @@ mtx_init(struct mtx *mutex, const char *name, const char *type,
|
|||||||
void
|
void
|
||||||
mtx_destroy(struct mtx *mutex)
|
mtx_destroy(struct mtx *mutex)
|
||||||
{
|
{
|
||||||
if (mutex->type & MTX_RECURSE)
|
if ((mutex->type & MTX_RECURSE) != 0)
|
||||||
recursive_lock_destroy(&mutex->u.recursive);
|
recursive_lock_destroy(&mutex->u.recursive);
|
||||||
else
|
else
|
||||||
mutex_destroy(&mutex->u.mutex.lock);
|
mutex_destroy(&mutex->u.mutex.lock);
|
||||||
|
|||||||
Reference in New Issue
Block a user