Style: Flip the if statement

The if case should have the multiple expressions
This commit is contained in:
Denis Kenzior 2009-12-17 21:25:15 -06:00
parent 3b9b6201c1
commit 7ffd9cb8e8
1 changed files with 3 additions and 3 deletions

View File

@ -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;