Bluetooth: Refactor rfcomm_dev_add()
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 10 Feb 2014 01:59:19 +0000 (20:59 -0500)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 14 Feb 2014 21:39:31 +0000 (13:39 -0800)
commitf355095756c2a0b77a5b0aa0384c0c09d9735252
tree0398680c23156f609f1a95d10430b37c2b193fe0
parent033ace99c444daa4141b84419f670513ce637b77
Bluetooth: Refactor rfcomm_dev_add()

Move rfcomm_dev allocation and initialization into new function,
__rfcomm_dev_add(), to simplify resource release in error handling.

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/tty.c