Skip to content

Commit

Permalink
Bluetooth: Remove unneeded local_amp_id initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrei Emeltchenko authored and Gustavo Padovan committed Nov 19, 2012
1 parent 96eff46 commit 522db70
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 522db70

Please sign in to comment.