From: Marit Henriksen <[email protected]>

---
 drivers/stemodem/voicecall.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/stemodem/voicecall.c b/drivers/stemodem/voicecall.c
index 8f3533d..e840e4f 100644
--- a/drivers/stemodem/voicecall.c
+++ b/drivers/stemodem/voicecall.c
@@ -433,6 +433,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);
@@ -454,9 +457,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
-- 
1.7.1

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to