]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bluetooth: Remove unnecessary L2CAP channel state check
authorJohan Hedberg <johan.hedberg@intel.com>
Mon, 29 Apr 2013 16:35:42 +0000 (19:35 +0300)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 3 May 2013 19:09:43 +0000 (16:09 -0300)
commit4d9a26fc576e1981a5310c3e8db3a28023f8ed52
tree6eeeea653f5d9efcb51758d0da4349a4ba81d7d1
parentf0aa3884184712649a082a99b82cb0c78de7d401
Bluetooth: Remove unnecessary L2CAP channel state check

In l2cap_att_channel() we're only interested in the BT_CONNECTED state
so this state can directly be passed to l2cap_global_chan_by_scid().
This way there's no need to do any additional state check later.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c