Fixed style issues, as pointed by Axel

This commit is contained in:
Jerome Duval 2013-01-18 19:43:20 +01:00
parent 20cbdcd166
commit 4280f862ec
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ void
mtx_init(struct mtx *mutex, const char *name, const char *type,
int options)
{
if (options & MTX_RECURSE) {
if ((options & MTX_RECURSE) != 0) {
recursive_lock_init_etc(&mutex->u.recursive, name,
MUTEX_FLAG_CLONE_NAME);
} else {
@ -36,7 +36,7 @@ mtx_init(struct mtx *mutex, const char *name, const char *type,
void
mtx_destroy(struct mtx *mutex)
{
if (mutex->type & MTX_RECURSE)
if ((mutex->type & MTX_RECURSE) != 0)
recursive_lock_destroy(&mutex->u.recursive);
else
mutex_destroy(&mutex->u.mutex.lock);