diff options
author | Guillaume Zajac <guillaume.zajac@linux.intel.com> | 2011-08-05 10:51:41 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2011-08-09 13:12:38 +0200 |
commit | 9366a5c28b82e35804e678e885db3f98feb68cf6 (patch) | |
tree | eaeef9a182f0eb151c3a14d67eb7b94dfe21b67f /plugins | |
parent | c3436f19411bac2d8d1c1837531fca11afefb5c0 (diff) | |
download | connman-9366a5c28b82e35804e678e885db3f98feb68cf6.tar.gz connman-9366a5c28b82e35804e678e885db3f98feb68cf6.tar.bz2 connman-9366a5c28b82e35804e678e885db3f98feb68cf6.zip |
ofono: Improve coding style
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/ofono.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c index 2bf777d7..060cd8ef 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); } |