From: Johan Hedberg Date: Fri, 15 Aug 2014 18:06:52 +0000 (+0300) Subject: Bluetooth: Remove unnecessary l2cap_chan_unlock before l2cap_chan_add X-Git-Tag: fixes-against-v3.18-rc2~144^2~144^2~148 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3ed6c63f7d4a51b01a61b10e53a2992ad26aa78;p=pandora-kernel.git 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 Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed