Bluetooth: Add clarifying comment to l2cap_chan_alloc_cid()
Make it clear why we're checking for non-zero rx CID. Change-Id: I07a44cf1a0f28c540b191e24aba4d0519c338eaf Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
b5245cb9db
commit
4f66545ba7
1 changed files with 4 additions and 0 deletions
|
@ -112,6 +112,10 @@ static void l2cap_chan_alloc_cid(struct bt_conn *conn,
|
|||
{
|
||||
uint16_t cid;
|
||||
|
||||
/*
|
||||
* No action needed if there's already a CID allocated, e.g. in
|
||||
* the case of a fixed channel.
|
||||
*/
|
||||
if (chan->rx.cid > 0) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue