From 4be1934f63574ede7e7ba701cc3b64ee67c143f3 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Wed, 11 Sep 2013 15:52:12 +0200 Subject: [PATCH] avdtp: Remove not used pending_auth from struct avdtp --- profiles/audio/avdtp.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/profiles/audio/avdtp.c b/profiles/audio/avdtp.c index 818dbdd6a..61f55d62a 100644 --- a/profiles/audio/avdtp.c +++ b/profiles/audio/avdtp.c @@ -41,7 +41,6 @@ #include #include -#include #include #include "log.h" @@ -426,8 +425,6 @@ struct avdtp { /* Attempt stream setup instead of disconnecting */ gboolean stream_setup; - - DBusPendingCall *pending_auth; }; static GSList *servers = NULL; @@ -2325,12 +2322,8 @@ static struct avdtp *avdtp_get_internal(struct btd_device *device) return NULL; session = find_session(server->sessions, device); - if (session) { - if (session->pending_auth) - return NULL; - else - return session; - } + if (session) + return session; session = g_new0(struct avdtp, 1); -- 2.47.3