Bluetooth: Remove duplicated code in l2cap conn req
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Fri, 24 Feb 2012 14:00:00 +0000 (16:00 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 24 Feb 2012 18:35:02 +0000 (20:35 +0200)
commit9b27f350688c9399da10c2b888c4044c2c1bd923
treefbdd090275c27a910e6b56d10f608a5ad2eb0cbf
parent5b4cedaa14bd1fe3ca1d59c684203a6ae7747faa
Bluetooth: Remove duplicated code in l2cap conn req

The same sequence sending L2CAP Connection Request was used in several
places. Using subroutine makes those places easy to read.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Reviewed-by: Ulisses Furquim <ulisses@profusion.mobi>
Acked-by: Gustavo F. Padovan <padovan@profusion.mobi>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_core.c