From d5f3308f9c433d0db8c19344ac32abbc7b036c8c Mon Sep 17 00:00:00 2001 From: Claudio Takahasi Date: Fri, 21 Mar 2014 16:20:32 -0300 Subject: [PATCH] tools: Fix coding style when testing pointer This patch fixes tools/gatt-service.c coding style, using !ptr instead of ptr == NULL. --- tools/gatt-service.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gatt-service.c b/tools/gatt-service.c index cba0ff32c..ef479ed19 100644 --- a/tools/gatt-service.c +++ b/tools/gatt-service.c @@ -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; } -- 2.47.3