Bluetooth: Refactor dlc disconnect logic in rfcomm_dlc_close()
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 10 Feb 2014 01:59:13 +0000 (20:59 -0500)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 14 Feb 2014 21:39:30 +0000 (13:39 -0800)
commitf622357a5e83e3a812ca985a78e86d750c98228b
treeafac556beddac52f4e0f027298f9dfee0b959ebe
parent5998e04063563ff2ffc779510f072ff0ff94163b
Bluetooth: Refactor dlc disconnect logic in rfcomm_dlc_close()

Prepare for directly closing dlc if the RFCOMM session has not
yet been started; refactor the dlc disconnect logic into a separate
local function, __rfcomm_dlc_disconn(). 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