From 6972e3e585be2a2837c7f3e2cab734f4e4bfe954 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 8 Jan 2007 16:29:16 +0100 Subject: [PATCH] Fix error code in timer_query.c Fix the returned error code for the invalid timer definition. --- src/timer/timer_query.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/timer/timer_query.c b/src/timer/timer_query.c index 6bbe8bf2..d62ee570 100644 --- a/src/timer/timer_query.c +++ b/src/timer/timer_query.c @@ -77,6 +77,7 @@ static int snd_timer_query_open_conf(snd_timer_query_t **timer, if (err >= 0) { if (snd_config_get_type(type_conf) != SND_CONFIG_TYPE_COMPOUND) { SNDERR("Invalid type for TIMER type %s definition", str); + err = -EINVAL; goto _err; } snd_config_for_each(i, next, type_conf) { -- 2.47.1