audiodynamic: remove always-true conditional

func_index is set by the sum of three ternary operators which add, 0:4, 0:2,
and 1:0. Minimum value would be 0+0+0=0, and maximum would be 4+2+1=7.
The conditional checking if func_index is >= 0 and < 8 will always be true.
Removing it.

CID 1226442
This commit is contained in:
Luis de Bethencourt 2015-01-07 17:31:39 +00:00
parent 87c8c163a8
commit 1db92a91de

View file

@ -193,12 +193,8 @@ gst_audio_dynamic_set_process_function (GstAudioDynamic * filter,
func_index += (filter->characteristics == CHARACTERISTICS_HARD_KNEE) ? 0 : 2;
func_index += (GST_AUDIO_INFO_FORMAT (info) == GST_AUDIO_FORMAT_F32) ? 1 : 0;
if (func_index >= 0 && func_index < 8) {
filter->process = process_functions[func_index];
return TRUE;
}
return FALSE;
}
/* GObject vmethod implementations */