Skip to content

Commit 522db70

Browse files
finikorgGustavo Padovan
authored andcommitted
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>
1 parent 96eff46 commit 522db70

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎net/bluetooth/l2cap_core.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4284,7 +4284,6 @@ static int l2cap_create_channel_req(struct l2cap_conn *conn,
42844284

42854285
BT_DBG("mgr %p bredr_chan %p hs_hcon %p", mgr, chan, hs_hcon);
42864286

4287-
chan->local_amp_id = req->amp_id;
42884287
mgr->bredr_chan = chan;
42894288
chan->hs_hcon = hs_hcon;
42904289
conn->mtu = hdev->block_mtu;

0 commit comments

Comments
 (0)