summaryrefslogtreecommitdiff
path: root/profiles/health
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-06-24 15:07:46 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2014-06-25 12:26:19 +0300
commit09b9afbbea758c39c8842062d67a3f4405d7aa12 (patch)
treea3188bf2412cefcfe46ab0133650fd2f6c2a9e6c /profiles/health
parentdc95c60e08cc8411c626312861198497d5e60a20 (diff)
downloadbluez-09b9afbbea758c39c8842062d67a3f4405d7aa12.tar.gz
HDP: Fix NULL check
Improves readability of the code using similar check for not NULL.
Diffstat (limited to 'profiles/health')
-rw-r--r--profiles/health/hdp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/profiles/health/hdp.c b/profiles/health/hdp.c
index eaf3e4621..54aca9df9 100644
--- a/profiles/health/hdp.c
+++ b/profiles/health/hdp.c
@@ -1849,7 +1849,7 @@ static DBusMessage *device_echo(DBusConnection *conn,
data->cb = hdp_echo_connect_cb;
hdp_create_data_ref(data);
- if (device->mcl_conn && device->mcl != NULL) {
+ if (device->mcl_conn && device->mcl) {
if (mcap_create_mdl(device->mcl, data->mdep, data->config,
device_create_mdl_cb, data,
destroy_create_dc_data, &err))