crossover: dont set values where it doesn't matter

if we aren't going to use the value, dont set it.
Cppcheck complaint

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
This commit is contained in:
Curtis Malainey 2021-02-10 17:39:07 -08:00 committed by Liam Girdwood
parent 87a8dfecb6
commit 86e257731d
2 changed files with 4 additions and 4 deletions

View File

@ -223,7 +223,7 @@ int crossover_init_coef_ch(struct sof_eq_iir_biquad_df2t *coef,
int32_t i;
int32_t j = 0;
int32_t num_lr4s = num_sinks == CROSSOVER_2WAY_NUM_SINKS ? 1 : 3;
int err = 0;
int err;
for (i = 0; i < num_lr4s; i++) {
/* Get the low pass coefficients */

View File

@ -147,7 +147,7 @@ static void crossover_s16_default(const struct comp_dev *dev,
struct audio_stream *sink_stream;
int16_t *x, *y;
int ch, i, j;
int idx = 0;
int idx;
int nch = source_stream->channels;
int32_t out[num_sinks];
@ -186,7 +186,7 @@ static void crossover_s24_default(const struct comp_dev *dev,
struct audio_stream *sink_stream;
int32_t *x, *y;
int ch, i, j;
int idx = 0;
int idx;
int nch = source_stream->channels;
int32_t out[num_sinks];
@ -225,7 +225,7 @@ static void crossover_s32_default(const struct comp_dev *dev,
struct audio_stream *sink_stream;
int32_t *x, *y;
int ch, i, j;
int idx = 0;
int idx;
int nch = source_stream->channels;
int32_t out[num_sinks];