The last argument to mtx_init() should be MTX_DEF, not 0. This is not a

functional change since MTX_DEF happens to be defined as 0.
This commit is contained in:
Don Lewis 2003-12-08 01:08:03 +00:00
parent c8123cb800
commit 55a3845131
2 changed files with 2 additions and 2 deletions

View File

@ -340,7 +340,7 @@ sndstat_prepare(struct sbuf *s)
static int
sndstat_init(void)
{
mtx_init(&sndstat_lock, "sndstat", NULL, 0);
mtx_init(&sndstat_lock, "sndstat", NULL, MTX_DEF);
sndstat_dev = make_dev(&sndstat_cdevsw, SND_DEV_STATUS, UID_ROOT, GID_WHEEL, 0444, "sndstat");
return (sndstat_dev != 0)? 0 : ENXIO;

View File

@ -96,7 +96,7 @@ snd_mtxcreate(const char *desc, const char *type)
m = malloc(sizeof(*m), M_DEVBUF, M_WAITOK | M_ZERO);
if (m == NULL)
return NULL;
mtx_init(m, desc, type, MTX_RECURSE);
mtx_init(m, desc, type, MTX_DEF | MTX_RECURSE);
return m;
#else
return (void *)0xcafebabe;