mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
topology: fix 'parse_tuple_set() - remove dead condition code'
The whole SND_SOC_TPLG_TUPLE_TYPE_WORD condition part must be
commented out, otherwise the condition is always true.
Fixes: 51e1d486ce ("topology: parse_tuple_set() - remove dead condition code")
BugLink: https://github.com/alsa-project/alsa-lib/issues/114
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
0de72e63d7
commit
ae7362c996
1 changed files with 5 additions and 5 deletions
|
|
@ -859,11 +859,11 @@ static int parse_tuple_set(snd_config_t *cfg,
|
||||||
goto err;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((type == SND_SOC_TPLG_TUPLE_TYPE_WORD
|
if (/* (type == SND_SOC_TPLG_TUPLE_TYPE_WORD
|
||||||
/* && tuple_val > UINT_MAX */)
|
&& tuple_val > UINT_MAX) || */
|
||||||
|| (type == SND_SOC_TPLG_TUPLE_TYPE_SHORT
|
(type == SND_SOC_TPLG_TUPLE_TYPE_SHORT
|
||||||
&& tuple_val > USHRT_MAX)
|
&& tuple_val > USHRT_MAX) ||
|
||||||
|| (type == SND_SOC_TPLG_TUPLE_TYPE_BYTE
|
(type == SND_SOC_TPLG_TUPLE_TYPE_BYTE
|
||||||
&& tuple_val > UCHAR_MAX)) {
|
&& tuple_val > UCHAR_MAX)) {
|
||||||
SNDERR("tuple %s: invalid value", id);
|
SNDERR("tuple %s: invalid value", id);
|
||||||
goto err;
|
goto err;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue