summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/stemodem/voicecall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c
index 06156bf1..ad505ffc 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