sound: sequencer: clean up remove bogus check
authorDan Carpenter <error27@gmail.com>
Tue, 16 Mar 2010 06:46:23 +0000 (09:46 +0300)
committerTakashi 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

index c79874696becfdf81c4f42793ff44eee35bd103e..e85789e53816640f8e7e7224fdd0199787e5f4de 100644 (file)
@@ -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;