diff options
author | Dan Carpenter <error27@gmail.com> | 2010-03-16 07:46:23 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-03-16 07:52:13 +0100 |
commit | fb40b496ad8bbe60a60c25eb2fce20f3cc114679 (patch) | |
tree | 91463d071964f5fa18914d93019fff285772147f /sound/oss | |
parent | Merge branch 'topic/misc' into fix/misc (diff) | |
download | linux-fb40b496ad8bbe60a60c25eb2fce20f3cc114679.tar.xz linux-fb40b496ad8bbe60a60c25eb2fce20f3cc114679.zip |
sound: sequencer: clean up remove bogus check
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>
Diffstat (limited to 'sound/oss')
-rw-r--r-- | sound/oss/sequencer.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/oss/sequencer.c b/sound/oss/sequencer.c index c79874696bec..e85789e53816 100644 --- 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; |