Skip to content

Commit

Permalink
sound: sequencer: clean up remove bogus check
Browse files Browse the repository at this point in the history
A few lines earlier bend is limited to 2399.  So semitones is always
less than 24 here.

Signed-off-by: Dan Carpenter <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
error27 authored and tiwai committed Mar 16, 2010
1 parent a9104f9 commit fb40b49
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/oss/sequencer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fb40b49

Please sign in to comment.