From: Abramo Bagnara Date: Mon, 5 May 2003 14:24:11 +0000 (+0000) Subject: Fixed typos. (one of that courtesy of Sourav K. Mandal X-Git-Tag: v1.0.3~176 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=2fb0fa541e0bd9e0e9ebfc1391d1bc8d79d893db;p=alsa-lib.git Fixed typos. (one of that courtesy of Sourav K. Mandal --- diff --git a/src/control/control_shm.c b/src/control/control_shm.c index 3af9c3c3..0da2eb59 100644 --- a/src/control/control_shm.c +++ b/src/control/control_shm.c @@ -609,15 +609,14 @@ int _snd_ctl_shm_open(snd_ctl_t **handlep, char *name, snd_config_t *root, snd_c err = snd_config_search_definition(root, "server", server, &sconfig); if (err < 0) { SNDERR("Unknown server %s", server); - err = -EINVAL; - goto _err; + return -EINVAL; } if (snd_config_get_type(sconfig) != SND_CONFIG_TYPE_COMPOUND) { SNDERR("Invalid type for server %s definition", server); err = -EINVAL; goto _err; } - snd_config_for_each(i, next, conf) { + snd_config_for_each(i, next, sconfig) { snd_config_t *n = snd_config_iterator_entry(i); const char *id; if (snd_config_get_id(n, &id) < 0)