OSDN Git Service

gatt: Fix coding style checking boolean
authorClaudio Takahasi <claudio.takahasi@openbossa.org>
Fri, 21 Mar 2014 19:20:31 +0000 (16:20 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Mar 2014 09:02:44 +0000 (11:02 +0200)
Use !foo instead of foo == FALSE

src/gatt-dbus.c

index a5a862b..4418353 100644 (file)
@@ -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,