From 45bfe0e3b2ee13074d74ce2cc1e47ba988a55115 Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Fri, 29 Aug 2014 14:24:21 +0300 Subject: [PATCH] android/health: Fix incorrect check "!create_mdl(channel) < 0" is always false since it returns bool --- android/health.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- 2.47.3