diff options
author | Denis Kenzior <denkenz@gmail.com> | 2009-12-17 21:25:15 -0600 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2009-12-17 21:45:39 -0600 |
commit | 7ffd9cb8e890d69a606506adb86e0828ad09d253 (patch) | |
tree | a519e97407ae94472cb651ac5fa4bc1acba018b0 /src | |
parent | 3b9b6201c17461a408d2c1325d8d0b92f7fa3bd1 (diff) | |
download | ofono-7ffd9cb8e890d69a606506adb86e0828ad09d253.tar.bz2 |
Style: Flip the if statement
The if case should have the multiple expressions
Diffstat (limited to 'src')
-rw-r--r-- | src/cbs.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -437,13 +437,13 @@ static DBusMessage *cbs_set_powered(struct ofono_cbs *cbs, gboolean value, if (msg) cbs->pending = dbus_message_ref(msg); - if (!value) - cbs->driver->clear_topics(cbs, cbs_set_powered_cb, cbs); - else { + if (value) { topic_str = cbs_topics_to_str(cbs, cbs->topics); cbs->driver->set_topics(cbs, topic_str, cbs_set_powered_cb, cbs); g_free(topic_str); + } else { + cbs->driver->clear_topics(cbs, cbs_set_powered_cb, cbs); } return NULL; |