]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Remove unnecessary l2cap_chan_unlock before l2cap_chan_add
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 15 Aug 2014 18:06:52 +0000 (21:06 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 8 Sep 2014 17:07:52 +0000 (19:07 +0200)
commit1dd4cea510e427dd41d3c5e2531517e8b84b3efe
tree93cb5de45872beaa90b572444bfecf827967c9fd
parent6909fb45ee6a58f15103aaa3fb1e0cf812e431da
Bluetooth: Remove unnecessary l2cap_chan_unlock before l2cap_chan_add

The l2cap_chan_add() function doesn't require the channel to be
unlocked. It only requires the l2cap_conn to be unlocked. Therefore,
it's unnecessary to unlock a channel before calling l2cap_chan_add().
This patch removes such unnecessary unlocking from the
l2cap_chan_connect() function.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c