Bluetooth: Fix __l2cap_no_conn_pending() usage with all channels
authorJohan Hedberg <johan.hedberg@intel.com>
Thu, 7 Aug 2014 19:56:43 +0000 (22:56 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 14 Aug 2014 06:49:12 +0000 (08:49 +0200)
commit5ff6f34d4260c542df3712e29ead87cf071ad472
treeb6303499e02983ffc3df65740d31c3d6f5a9307b
parenta24cce144b9814a17f46006dbad6056f1f5f481e
Bluetooth: Fix __l2cap_no_conn_pending() usage with all channels

The __l2cap_no_conn_pending() function would previously only return a
meaningful value for connection oriented channels and was therefore not
useful for anything else. As preparation of making the L2CAP code more
generic allow the function to be called for other channel types as well
by returning a meaningful value for them.

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