From 62526c7106562860c6a4d79ca67e0dfc47f2e936 Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Mon, 18 Aug 2014 12:07:02 +0300 Subject: [PATCH] android/health: Simplify search_cb failure case --- android/health.c | 5 +---- 1 file changed, 1 insertion(+), 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) -- 2.47.3