ofono: Improve coding style
authorGuillaume Zajac <guillaume.zajac@linux.intel.com>
Fri, 5 Aug 2011 08:51:41 +0000 (10:51 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 9 Aug 2011 11:12:38 +0000 (13:12 +0200)
plugins/ofono.c

index 2bf777d..060cd8e 100644 (file)
@@ -1881,10 +1881,8 @@ static gboolean context_changed(DBusConnection *connection,
 
                if (active == FALSE)
                        set_connected(info, active);
-
-               /* Connect only if requested to do so */
-               if (active == TRUE &&
-                       connman_network_get_connecting(info->network) == TRUE)
+               else if (connman_network_get_connecting(info->network) == TRUE)
+                       /* Connect only if requested to do so */
                        set_connected(info, active);
        }