From 36757a45b6598fe66aae08320710fb0b276e3c78 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Mon, 12 Dec 2011 18:58:40 +0100 Subject: ofono: Remove unnecessary brackets A left over from the refactoring. --- plugins/ofono.c | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) (limited to 'plugins/ofono.c') 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); } -- cgit v1.2.3