summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorClaudio Takahasi <claudio.takahasi@openbossa.org>2014-03-21 16:20:32 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-03-24 11:02:53 +0200
commitd5f3308f9c433d0db8c19344ac32abbc7b036c8c (patch)
treee3711dbded39c7ac75d0100b8d6aa8855368ee7e /tools
parentdec6e148021a4bb8e7fdaae9f0f612a05086b9e7 (diff)
downloadbluez-d5f3308f9c433d0db8c19344ac32abbc7b036c8c.tar.gz
tools: Fix coding style when testing pointer
This patch fixes tools/gatt-service.c coding style, using !ptr instead of ptr == NULL.
Diffstat (limited to 'tools')
-rw-r--r--tools/gatt-service.c2
1 files changed, 1 insertions, 1 deletions
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;
}