Skip to contentSkip to conversation

stemodem: Return immediately if not voice call.

PATCH In review Marit Henriksen 2 participants 2 messages Jan 14, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 stemodem: Return immediately if not voice call.

From: Marit Henriksen <[email protected]>

---
 drivers/stemodem/voicecall.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
drivers/stemodem/voicecall.c +3 -3
index 8f3533d..e840e4f 100644
@@ -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
Signature · 1 line
1.7.1
#1 lore raw

Hi Marit,

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

patch has been applied. Thanks.

Regards

Marcel