diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-12-12 18:58:40 +0100 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-12-12 19:00:36 +0100 |
commit | 36757a45b6598fe66aae08320710fb0b276e3c78 (patch) | |
tree | b8ef33ff6be1c921afe793614238582653301a28 /plugins/ofono.c | |
parent | 7c4dac19371496e8f7cf8cd1ea0ba93709dca239 (diff) | |
download | connman-36757a45b6598fe66aae08320710fb0b276e3c78.tar.gz connman-36757a45b6598fe66aae08320710fb0b276e3c78.tar.bz2 connman-36757a45b6598fe66aae08320710fb0b276e3c78.zip |
ofono: Remove unnecessary brackets
A left over from the refactoring.
Diffstat (limited to 'plugins/ofono.c')
-rw-r--r-- | plugins/ofono.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/plugins/ofono.c b/plugins/ofono.c index fa0f8080..aa9a776b 100644 --- a/plugins/ofono.c +++ b/plugins/ofono.c @@ -1307,13 +1307,12 @@ static gboolean netreg_changed(DBusConnection *connection, DBusMessage *message, dbus_message_iter_next(&iter); dbus_message_iter_recurse(&iter, &value); - if (g_str_equal(key, "Name") == TRUE) { + if (g_str_equal(key, "Name") == TRUE) netreg_update_name(modem, &value); - } else if (g_str_equal(key, "Strength") == TRUE) { + else if (g_str_equal(key, "Strength") == TRUE) netreg_update_strength(modem, &value); - } else if (g_str_equal(key, "Status") == TRUE) { + else if (g_str_equal(key, "Status") == TRUE) netreg_update_roaming(modem, &value); - } return TRUE; } @@ -1333,13 +1332,12 @@ static void netreg_properties_reply(struct modem_data *modem, dbus_message_iter_next(&entry); dbus_message_iter_recurse(&entry, &value); - if (g_str_equal(key, "Name") == TRUE) { + if (g_str_equal(key, "Name") == TRUE) netreg_update_name(modem, &value); - } else if (g_str_equal(key, "Strength") == TRUE) { + else if (g_str_equal(key, "Strength") == TRUE) netreg_update_strength(modem, &value); - } else if (g_str_equal(key, "Status") == TRUE) { + else if (g_str_equal(key, "Status") == TRUE) netreg_update_roaming(modem, &value); - } dbus_message_iter_next(dict); } @@ -1423,11 +1421,10 @@ static gboolean cm_changed(DBusConnection *connection, DBusMessage *message, dbus_message_iter_next(&iter); dbus_message_iter_recurse(&iter, &value); - if (g_str_equal(key, "Attached") == TRUE) { + if (g_str_equal(key, "Attached") == TRUE) cm_update_attached(modem, &value); - } else if (g_str_equal(key, "Powered") == TRUE) { + else if (g_str_equal(key, "Powered") == TRUE) cm_update_powered(modem, &value); - } return TRUE; } @@ -1446,11 +1443,10 @@ static void cm_properties_reply(struct modem_data *modem, DBusMessageIter *dict) dbus_message_iter_next(&entry); dbus_message_iter_recurse(&entry, &value); - if (g_str_equal(key, "Attached") == TRUE) { + if (g_str_equal(key, "Attached") == TRUE) cm_update_attached(modem, &value); - } else if (g_str_equal(key, "Powered") == TRUE) { + else if (g_str_equal(key, "Powered") == TRUE) cm_update_powered(modem, &value); - } dbus_message_iter_next(dict); } |