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>
Sat, 22 Jun 2013 23:23:49 +0000 (00:23 +0100)
commitaf1c01349ecc2b8ab2c329e4dbd46e9018469bd1
treecc631d9121db930302c51de8d4a56e2567c042ad
parent60bac184c9c7df2299aca4dc45c4b5b486f49a89
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