a set of fixes to reduce gcc warnings

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2018-03-27 15:16:41 +02:00
parent 345843fc24
commit 7f084af4e4
7 changed files with 13 additions and 9 deletions

View file

@ -888,7 +888,7 @@ int tplg_add_enum(snd_tplg_t *tplg, struct snd_tplg_enum_template *enum_ctl,
if (enum_ctl->values != NULL) {
for (i = 0; i < num_items; i++) {
if (enum_ctl->values[i])
if (enum_ctl->values[i] == NULL)
continue;
memcpy(&ec->values[i * sizeof(int) * ENUM_VAL_SIZE],