From dec6e148021a4bb8e7fdaae9f0f612a05086b9e7 Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Fri, 21 Mar 2014 16:20:31 -0300 Subject: [PATCH] gatt: Fix coding style checking boolean Use !foo instead of foo == FALSE --- src/gatt-dbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gatt-dbus.c b/src/gatt-dbus.c index a5a862bf0..4418353ed 100644 --- a/src/gatt-dbus.c +++ b/src/gatt-dbus.c @@ -368,9 +368,9 @@ static const GDBusMethodTable methods[] = { gboolean gatt_dbus_manager_register(void) { - if (g_dbus_register_interface(btd_get_dbus_connection(), + if (!g_dbus_register_interface(btd_get_dbus_connection(), "/org/bluez", GATT_MGR_IFACE, - methods, NULL, NULL, NULL, NULL) == FALSE) + methods, NULL, NULL, NULL, NULL)) return FALSE; proxy_hash = g_hash_table_new_full(g_direct_hash, g_direct_equal, -- 2.47.3