Bluetooth: L2CAP: remove unused l2cap_chan_close()

l2cap_chan_close() is now unused, and l2cap_chan_close_unlocked() should
be used instead.

Remove l2cap_chan_close().

Signed-off-by: Pauli Virtanen <pav@iki.fi>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
Pauli Virtanen 2026-08-29 17:20:00 +03:00 committed by Luiz Augusto von Dentz
parent a69dd52612
commit 5ccdbf71f1
2 changed files with 0 additions and 7 deletions

View File

@ -961,7 +961,6 @@ int l2cap_add_psm(struct l2cap_chan *chan, bdaddr_t *src, __le16 psm);
int l2cap_add_scid(struct l2cap_chan *chan, __u16 scid);
struct l2cap_chan *l2cap_chan_create(void);
void l2cap_chan_close(struct l2cap_chan *chan, int reason);
void l2cap_chan_close_unlocked(struct l2cap_chan *chan, int reason)
__must_not_hold(&chan->lock);
int l2cap_chan_connect(struct l2cap_chan *chan, __le16 psm, u16 cid,

View File

@ -880,12 +880,6 @@ static void __l2cap_chan_close(struct l2cap_chan *chan, int reason)
}
}
void l2cap_chan_close(struct l2cap_chan *chan, int reason)
{
__l2cap_chan_close(chan, reason);
}
EXPORT_SYMBOL(l2cap_chan_close);
/* Take chan->lock. If chan->conn is non-NULL, take new reference on it, take
* chan->conn->lock, and return true. Otherwise return false.
*/