projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9104f9
)
sound: sequencer: clean up remove bogus check
author
Dan Carpenter
<error27@gmail.com>
Tue, 16 Mar 2010 06:46:23 +0000
(09:46 +0300)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 16 Mar 2010 06:52:13 +0000
(07:52 +0100)
A few lines earlier bend is limited to 2399. So semitones is always
less than 24 here.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/oss/sequencer.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/oss/sequencer.c
b/sound/oss/sequencer.c
index c79874696becfdf81c4f42793ff44eee35bd103e..e85789e53816640f8e7e7224fdd0199787e5f4de 100644
(file)
--- a/
sound/oss/sequencer.c
+++ b/
sound/oss/sequencer.c
@@
-1631,8
+1631,6
@@
unsigned long compute_finetune(unsigned long base_freq, int bend, int range,
}
semitones = bend / 100;
- if (semitones > 99)
- semitones = 99;
cents = bend % 100;
amount = (int) (semitone_tuning[semitones] * multiplier * cent_tuning[cents]) / 10000;