projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3436f1
)
ofono: Improve coding style
author
Guillaume Zajac
<guillaume.zajac@linux.intel.com>
Fri, 5 Aug 2011 08:51:41 +0000
(10:51 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Tue, 9 Aug 2011 11:12:38 +0000
(13:12 +0200)
plugins/ofono.c
patch
|
blob
|
history
diff --git
a/plugins/ofono.c
b/plugins/ofono.c
index
2bf777d
..
060cd8e
100644
(file)
--- 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);
}