OSDN Git Service

agent: Remote not used variables from pincode_reply
authorSzymon Janc <szymon.janc@tieto.com>
Tue, 2 Oct 2012 09:33:12 +0000 (11:33 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Tue, 2 Oct 2012 09:49:31 +0000 (12:49 +0300)
adapter and sba are not used later in function code.

src/agent.c

index 8cf37b1..e206c56 100644 (file)
@@ -355,16 +355,12 @@ static void pincode_reply(DBusPendingCall *call, void *user_data)
 {
        struct agent_request *req = user_data;
        struct agent *agent = req->agent;
-       struct btd_adapter *adapter = agent->adapter;
        agent_pincode_cb cb = req->cb;
        DBusMessage *message;
        DBusError err;
-       bdaddr_t sba;
        size_t len;
        char *pin;
 
-       adapter_get_address(adapter, &sba);
-
        /* steal_reply will always return non-NULL since the callback
         * is only called after a reply has been received */
        message = dbus_pending_call_steal_reply(call);