summaryrefslogtreecommitdiff
path: root/sys/dev/sound
diff options
context:
space:
mode:
authorCameron Grant <cg@FreeBSD.org>2000-01-10 07:05:15 +0000
committerCameron Grant <cg@FreeBSD.org>2000-01-10 07:05:15 +0000
commit898cb2af53676e4d6f37d60d203790ec937522b9 (patch)
treee12364975eb2f8ffa90a8efb6d282c9d09df41bb /sys/dev/sound
parent78ae73b5eae307d006658dad4f67158679537409 (diff)
Notes
Diffstat (limited to 'sys/dev/sound')
-rw-r--r--sys/dev/sound/pcm/dsp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/dsp.c b/sys/dev/sound/pcm/dsp.c
index 79f6ef146eca..c620f43a0596 100644
--- a/sys/dev/sound/pcm/dsp.c
+++ b/sys/dev/sound/pcm/dsp.c
@@ -168,8 +168,8 @@ dsp_read(snddev_info *d, int chan, struct uio *buf, int flag)
if (!(d->flags & SD_F_PRIO_SET)) d->flags |= SD_F_PRIO_RD;
if (!(d->flags & SD_F_DIR_SET)) setchns(d, chan);
getchns(d, chan, &rdch, &wrch);
- KASSERT(wrch, ("dsp_read: nonexistant channel"));
- KASSERT(wrch->flags & CHN_F_BUSY, ("dsp_read: nonbusy channel"));
+ KASSERT(rdch, ("dsp_read: nonexistant channel"));
+ KASSERT(rdch->flags & CHN_F_BUSY, ("dsp_read: nonbusy channel"));
if (rdch->flags & CHN_F_MAPPED) return EINVAL;
if (!(rdch->flags & CHN_F_RUNNING)) {
rdch->flags |= CHN_F_RUNNING;