summaryrefslogtreecommitdiff
path: root/android/health.c
diff options
context:
space:
mode:
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>2014-08-18 12:07:02 +0300
committerSzymon Janc <szymon.janc@tieto.com>2014-08-19 18:40:50 +0200
commit62526c7106562860c6a4d79ca67e0dfc47f2e936 (patch)
tree4fa276e454576bede44f44cf567029c1e29c06c1 /android/health.c
parente32d55d40aa69df6f15f8f234d9c04e9064fb987 (diff)
downloadbluez-62526c7106562860c6a4d79ca67e0dfc47f2e936.tar.gz
android/health: Simplify search_cb failure case
Diffstat (limited to 'android/health.c')
-rw-r--r--android/health.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/android/health.c b/android/health.c
index 2ea10a281..c8af90ec5 100644
--- a/android/health.c
+++ b/android/health.c
@@ -1880,10 +1880,7 @@ static void search_cb(sdp_list_t *recs, int err, gpointer data)
return;
fail:
- send_channel_state_notify(channel, HAL_HEALTH_CHANNEL_DESTROYED, -1);
-
- queue_remove(channel->dev->channels, channel);
- free_health_channel(channel);
+ destroy_channel(channel);
}
static int connect_mcl(struct health_channel *channel)