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:
Johan Hedberg 2015-11-02 11:16:37 +02:00 committed by Anas Nashif
commit 4f66545ba7

View file

@ -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;
}