summaryrefslogtreecommitdiff
path: root/android/health.c
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2014-08-29 14:24:21 +0300
committerSzymon Janc <szymon.janc@tieto.com>2014-08-29 16:11:49 +0200
commit45bfe0e3b2ee13074d74ce2cc1e47ba988a55115 (patch)
tree2b095e433e7ef699906f1db9cfa5419b0c491747 /android/health.c
parent9a7323f11101a03ad166715e51e42b5e55c952b3 (diff)
downloadbluez-45bfe0e3b2ee13074d74ce2cc1e47ba988a55115.tar.gz
android/health: Fix incorrect check
"!create_mdl(channel) < 0" is always false since it returns bool
Diffstat (limited to 'android/health.c')
-rw-r--r--android/health.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/health.c b/android/health.c
index abf01b4d0..fb2a1e3b4 100644
--- a/android/health.c
+++ b/android/health.c
@@ -1949,7 +1949,7 @@ static void bt_health_connect_channel(const void *buf, uint16_t len)
goto fail;
/* create mdl if it does not exists */
- if (!channel->mdl && !create_mdl(channel) < 0)
+ if (!channel->mdl && !create_mdl(channel))
goto fail;
/* reconnect mdl if it exists */