From 09b9afbbea758c39c8842062d67a3f4405d7aa12 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Tue, 24 Jun 2014 15:07:46 +0300 Subject: [PATCH] HDP: Fix NULL check Improves readability of the code using similar check for not NULL. --- profiles/health/hdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.47.3