From 9366a5c28b82e35804e678e885db3f98feb68cf6 Mon Sep 17 00:00:00 2001 From: Guillaume Zajac Date: Fri, 5 Aug 2011 10:51:41 +0200 Subject: [PATCH] ofono: Improve coding style --- plugins/ofono.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/ofono.c b/plugins/ofono.c index 2bf777d..060cd8e 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -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); } -- 2.7.4