diff options
author | tanimura <tanimura@FreeBSD.org> | 1999-10-31 08:58:51 +0000 |
---|---|---|
committer | tanimura <tanimura@FreeBSD.org> | 1999-10-31 08:58:51 +0000 |
commit | 42ae38ffd6f2fe1836ee15bcc2b144bf88b09ae1 (patch) | |
tree | a2c47de0cc5f2e8bdb9ca1b1d460ffb5858b6b94 /sys/dev/sound/pcm/feeder.c | |
parent | 5fbe2c72e95d87e36a3192892d827347811c79f6 (diff) | |
download | FreeBSD-src-42ae38ffd6f2fe1836ee15bcc2b144bf88b09ae1.zip FreeBSD-src-42ae38ffd6f2fe1836ee15bcc2b144bf88b09ae1.tar.gz |
The total uiomoved size is accumulated in c, not tmp.
Diffstat (limited to 'sys/dev/sound/pcm/feeder.c')
-rw-r--r-- | sys/dev/sound/pcm/feeder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/feeder.c b/sys/dev/sound/pcm/feeder.c index 6c596d5..4a59806 100644 --- a/sys/dev/sound/pcm/feeder.c +++ b/sys/dev/sound/pcm/feeder.c @@ -117,8 +117,8 @@ feed_root(pcm_feeder *feeder, u_int8_t *buffer, u_int32_t count, struct uio *str tmp -= stream->uio_resid; c += tmp; } - if (!tmp) panic("feed_root: uiomove didn't"); - return tmp; + if (!c) panic("feed_root: uiomove didn't"); + return c; } pcm_feeder feeder_root = { "root", 0, NULL, NULL, feed_root }; |