diff options
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 }; |