conf: remove dead code in snd_config_get_card()

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-06-02 19:26:47 +02:00
parent 9621d0bff2
commit 2a1dafdbe5

View file

@ -154,10 +154,10 @@ int snd_config_get_card(const snd_config_t *conf)
long v;
int err;
if ((err = snd_config_get_integer(conf, &v)) < 0) {
if (snd_config_get_integer(conf, &v) < 0) {
if ((err = snd_config_get_string(conf, &str)) < 0) {
snd_config_get_id(conf, &id);
SNDERR("Invalid field %s", id);
if (snd_config_get_id(conf, &id) >= 0)
SNDERR("Invalid field %s", id);
return -EINVAL;
}
err = snd_card_get_index(str);