diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-10-06 13:03:21 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-10-08 10:43:52 +0200 |
commit | b0c09f94ff1660a1873549b788c998284ea5fb8a (patch) | |
tree | 1c85263c27cf48170ed3492f7c9a84b13a1d904b /net/bluetooth/6lowpan.c | |
parent | 5d0fd77a043504dabccb66d9b5671e682868e96d (diff) | |
download | talos-obmc-linux-b0c09f94ff1660a1873549b788c998284ea5fb8a.tar.gz talos-obmc-linux-b0c09f94ff1660a1873549b788c998284ea5fb8a.zip |
Bluetooth: 6lowpan: Remove redundant BT_CONNECTED assignment
The L2CAP core code makes sure of setting the channel state to
BT_CONNECTED, so there's no need for the implementation code (6lowpan
in this case) to do it.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/6lowpan.c')
-rw-r--r-- | net/bluetooth/6lowpan.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bluetooth/6lowpan.c b/net/bluetooth/6lowpan.c index 3d951abfdf41..023fa29db709 100644 --- a/net/bluetooth/6lowpan.c +++ b/net/bluetooth/6lowpan.c @@ -788,8 +788,6 @@ static struct l2cap_chan *chan_open(struct l2cap_chan *pchan) if (!chan) return NULL; - chan->state = BT_CONNECTED; - return chan; } |