From: Dan Carpenter Date: Tue, 16 Mar 2010 06:46:23 +0000 (+0300) Subject: sound: sequencer: clean up remove bogus check X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=fb40b496ad8bbe60a60c25eb2fce20f3cc114679;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Takashi Iwai --- 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;