diff options
author | Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com> | 2014-08-18 12:07:02 +0300 |
---|---|---|
committer | Szymon Janc <szymon.janc@tieto.com> | 2014-08-19 18:40:50 +0200 |
commit | 62526c7106562860c6a4d79ca67e0dfc47f2e936 (patch) | |
tree | 4fa276e454576bede44f44cf567029c1e29c06c1 /android/health.c | |
parent | e32d55d40aa69df6f15f8f234d9c04e9064fb987 (diff) | |
download | bluez-62526c7106562860c6a4d79ca67e0dfc47f2e936.tar.gz |
android/health: Simplify search_cb failure case
Diffstat (limited to 'android/health.c')
-rw-r--r-- | android/health.c | 5 |
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) |