diff options
Diffstat (limited to 'sys/dev/sound/pcm/buffer.c')
-rw-r--r-- | sys/dev/sound/pcm/buffer.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/sound/pcm/buffer.c b/sys/dev/sound/pcm/buffer.c index 6e82592..a9053d7 100644 --- a/sys/dev/sound/pcm/buffer.c +++ b/sys/dev/sound/pcm/buffer.c @@ -568,7 +568,6 @@ sndbuf_updateprevtotal(struct snd_dbuf *b) unsigned int snd_xbytes(unsigned int v, unsigned int from, unsigned int to) { - unsigned int w, x, y; if (from == to) return v; @@ -576,16 +575,6 @@ snd_xbytes(unsigned int v, unsigned int from, unsigned int to) if (from == 0 || to == 0 || v == 0) return 0; - x = from; - y = to; - while (y != 0) { - w = x % y; - x = y; - y = w; - } - from /= x; - to /= x; - return (unsigned int)(((u_int64_t)v * to) / from); } |