]> 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>
Wed, 29 May 2013 21:43:37 +0000 (18:43 -0300)
commitbd96652754b2d1a77f5fee7e23262e575c34ce61
tree6d2f30ac6c7cc258c967f7f74eccdf5190a20baa
parent09ad92c5c2da958306d6181c39217fe6a5cecad7
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