OSDN Git Service

avdtp: Remove not used pending_auth from struct avdtp
authorSzymon Janc <szymon.janc@tieto.com>
Wed, 11 Sep 2013 13:52:12 +0000 (15:52 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 11 Sep 2013 14:40:57 +0000 (17:40 +0300)
profiles/audio/avdtp.c

index 818dbdd..61f55d6 100644 (file)
@@ -41,7 +41,6 @@
 #include <bluetooth/sdp_lib.h>
 
 #include <glib.h>
-#include <dbus/dbus.h>
 #include <btio/btio.h>
 
 #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);