rc: simplify handling of _rc_call_removed_cb.
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Thu, 6 Sep 2012 00:45:52 +0000 (21:45 -0300)
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>
Thu, 6 Sep 2012 00:45:52 +0000 (21:45 -0300)
dialer/rc.c

index 4a50dd5..c890503 100644 (file)
@@ -328,11 +328,10 @@ static void _rc_call_added_cb(void *data __UNUSED__, OFono_Call *call)
 
 static void _rc_call_removed_cb(void *data __UNUSED__, OFono_Call *call)
 {
-
-       if (waiting == call) {
-               _removed_signal_send();
-               waiting = NULL;
-       }
+       if (waiting != call)
+               return;
+       _removed_signal_send();
+       waiting = NULL;
 }
 
 Eina_Bool rc_init(const char *service)