OSDN Git Service

tools: Fix coding style when testing pointer
authorClaudio Takahasi <claudio.takahasi@openbossa.org>
Fri, 21 Mar 2014 19:20:32 +0000 (16:20 -0300)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 24 Mar 2014 09:02:53 +0000 (11:02 +0200)
This patch fixes tools/gatt-service.c coding style, using !ptr instead
of ptr == NULL.

tools/gatt-service.c

index cba0ff3..ef479ed 100644 (file)
@@ -139,7 +139,7 @@ static void register_external_service(gpointer a, gpointer b)
 
        msg = dbus_message_new_method_call("org.bluez", "/org/bluez",
                                        GATT_MGR_IFACE, "RegisterService");
-       if (msg == NULL) {
+       if (!msg) {
                printf("Couldn't allocate D-Bus message\n");
                return;
        }