From 1fe79aa8a575add980d7319e8caffd46fd4098d9 Mon Sep 17 00:00:00 2001 From: Marit Henriksen Date: Fri, 14 Jan 2011 12:19:54 +0100 Subject: [PATCH] stemodem: Return immediately if not voice call. --- drivers/stemodem/voicecall.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c index 06156bf..ad505ff 100644 --- a/drivers/stemodem/voicecall.c +++ b/drivers/stemodem/voicecall.c @@ -431,6 +431,9 @@ static void ecav_notify(GAtResult *result, gpointer user_data) if (!g_at_result_iter_next_number(&iter, &call_type)) return; + if (call_type != BEARER_CLASS_VOICE) + return; + /* Skip process id and exit cause */ g_at_result_iter_skip_next(&iter); g_at_result_iter_skip_next(&iter); @@ -452,9 +455,6 @@ static void ecav_notify(GAtResult *result, gpointer user_data) return; } - if (call_type != BEARER_CLASS_VOICE) - return; - /* * Handle the call according to the status. * If it doesn't exists we make a new one -- 2.7.4