Bluetooth: Remove unneeded local_amp_id initialization
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Thu, 15 Nov 2012 16:14:55 +0000 (18:14 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 19 Nov 2012 21:26:35 +0000 (19:26 -0200)
local_amp_id is already set in l2cap_connect() which is called several
lines above.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c

index 4479894..e4f52a7 100644 (file)
@@ -4284,7 +4284,6 @@ static int l2cap_create_channel_req(struct l2cap_conn *conn,
 
                BT_DBG("mgr %p bredr_chan %p hs_hcon %p", mgr, chan, hs_hcon);
 
-               chan->local_amp_id = req->amp_id;
                mgr->bredr_chan = chan;
                chan->hs_hcon = hs_hcon;
                conn->mtu = hdev->block_mtu;