Bluetooth: Refactor deferred setup test in rfcomm_dlc_close()
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 10 Feb 2014 01:59:12 +0000 (20:59 -0500)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 14 Feb 2014 21:39:30 +0000 (13:39 -0800)
commit5998e04063563ff2ffc779510f072ff0ff94163b
tree481e5d8461d78a3c779feabcad087d3171eface1
parent4339c25afb0d49878fba5a989618ffe807aa46cd
Bluetooth: Refactor deferred setup test in rfcomm_dlc_close()

Prepare for directly closing dlc if the RFCOMM session has not
yet been started; refactor the deferred setup test for only those
dlc states to which the test applies. Retains functional
equivalence.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Tested-By: Alexander Holler <holler@ahsoftware.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/rfcomm/core.c