Add parenthesis.

Noticed by:	hps
Sponsored by:	DARPA, AFRL
This commit is contained in:
Ruslan Bukin 2016-12-30 16:26:54 +00:00
parent 5b2e3029ff
commit 436b590a4b

View File

@ -73,9 +73,9 @@ static struct mtx xdma_mtx;
/*
* Per channel locks.
*/
#define XCHAN_LOCK(xchan) mtx_lock(&xchan->mtx_lock)
#define XCHAN_UNLOCK(xchan) mtx_unlock(&xchan->mtx_lock)
#define XCHAN_ASSERT_LOCKED(xchan) mtx_assert(&xchan->mtx_lock, MA_OWNED)
#define XCHAN_LOCK(xchan) mtx_lock(&(xchan)->mtx_lock)
#define XCHAN_UNLOCK(xchan) mtx_unlock(&(xchan)->mtx_lock)
#define XCHAN_ASSERT_LOCKED(xchan) mtx_assert(&(xchan)->mtx_lock, MA_OWNED)
/*
* Allocate virtual xDMA channel.