diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-11-15 11:14:55 -0500 |
---|---|---|
committer | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-11-19 16:26:35 -0500 |
commit | 522db70286fcce420e5fc1be107912fbd3806323 (patch) | |
tree | 5f7e5fad4a4524421974f0cba35f44a0c9fac43f | |
parent | 96eff46e9f5632efa0d2941f7e028701a5f1a0f6 (diff) |
Bluetooth: Remove unneeded local_amp_id initialization
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>
-rw-r--r-- | net/bluetooth/l2cap_core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 4479894e0a5a..e4f52a7f08c6 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c | |||
@@ -4284,7 +4284,6 @@ static int l2cap_create_channel_req(struct l2cap_conn *conn, | |||
4284 | 4284 | ||
4285 | BT_DBG("mgr %p bredr_chan %p hs_hcon %p", mgr, chan, hs_hcon); | 4285 | BT_DBG("mgr %p bredr_chan %p hs_hcon %p", mgr, chan, hs_hcon); |
4286 | 4286 | ||
4287 | chan->local_amp_id = req->amp_id; | ||
4288 | mgr->bredr_chan = chan; | 4287 | mgr->bredr_chan = chan; |
4289 | chan->hs_hcon = hs_hcon; | 4288 | chan->hs_hcon = hs_hcon; |
4290 | conn->mtu = hdev->block_mtu; | 4289 | conn->mtu = hdev->block_mtu; |