Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb40b496 authored by Dan Carpenter's avatar Dan Carpenter Committed by Takashi Iwai
Browse files

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: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent a9104f98
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;