diff options
author | ariff <ariff@FreeBSD.org> | 2007-03-15 14:57:54 +0000 |
---|---|---|
committer | ariff <ariff@FreeBSD.org> | 2007-03-15 14:57:54 +0000 |
commit | 1acd59dccc72cbf4b0381a199232feb74e807426 (patch) | |
tree | 716eb1757c48bde8d737c6b39ce46e2e1fbcc47d /sys/dev/sound/midi/midi.c | |
parent | b29f3e283814c3d13acb9dbabe6ac17e470c3660 (diff) | |
download | FreeBSD-src-1acd59dccc72cbf4b0381a199232feb74e807426.zip FreeBSD-src-1acd59dccc72cbf4b0381a199232feb74e807426.tar.gz |
NULL instead of 0 in mtx_init() .
Diffstat (limited to 'sys/dev/sound/midi/midi.c')
-rw-r--r-- | sys/dev/sound/midi/midi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/sound/midi/midi.c b/sys/dev/sound/midi/midi.c index da5424c..d068f58 100644 --- a/sys/dev/sound/midi/midi.c +++ b/sys/dev/sound/midi/midi.c @@ -324,8 +324,8 @@ midi_init(kobj_class_t cls, int unit, int channel, void *cookie) if (!inqsize && !outqsize) goto err1; - mtx_init(&m->lock, "raw midi", 0, 0); - mtx_init(&m->qlock, "q raw midi", 0, 0); + mtx_init(&m->lock, "raw midi", NULL, 0); + mtx_init(&m->qlock, "q raw midi", NULL, 0); mtx_lock(&m->lock); mtx_lock(&m->qlock); @@ -1393,7 +1393,7 @@ midi_destroy(struct snd_midi *m, int midiuninit) static int midi_load() { - mtx_init(&midistat_lock, "midistat lock", 0, 0); + mtx_init(&midistat_lock, "midistat lock", NULL, 0); TAILQ_INIT(&midi_devs); /* Initialize the queue. */ midistat_dev = make_dev(&midistat_cdevsw, |