aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sound/pcm
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2010-04-28 17:26:05 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2010-04-28 17:26:05 +0000
commit8c975e70afa1d9d6224d2204cc0ea0ca309022e5 (patch)
tree0ee903a4d531ca8a0c59b5d3a2306766fff4242d /sys/dev/sound/pcm
parentd8b878873e7aa8df1972cc6a642804b17eb61087 (diff)
downloadsrc-8c975e70afa1d9d6224d2204cc0ea0ca309022e5.tar.gz
src-8c975e70afa1d9d6224d2204cc0ea0ca309022e5.zip
Remove dead code. Calculated greatest common divisor was not used at all.
On top of that, LLVM+Clang mis-compiles this code because of its register allocator bug. Analyzed by: Andrew Reilly (areilly at bigpond dot net dot au) Reviewed by: ariff, rdivacky MFC after: 3 days
Notes
Notes: svn path=/head/; revision=207330
Diffstat (limited to 'sys/dev/sound/pcm')
-rw-r--r--sys/dev/sound/pcm/buffer.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/sound/pcm/buffer.c b/sys/dev/sound/pcm/buffer.c
index 6e8259202dc0..a9053d751d86 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);
}