]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
Bluetooth: 6lowpan: Remove redundant BT_CONNECTED assignment
authorJohan Hedberg <johan.hedberg@intel.com>
Tue, 6 Oct 2015 10:03:21 +0000 (13:03 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 8 Oct 2015 08:43:52 +0000 (10:43 +0200)
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>
net/bluetooth/6lowpan.c

index 3d951abfdf4180d04e2b9d10f393cd736c1fcb04..023fa29db7093ea11ce331db089e746c421ee93b 100644 (file)
@@ -788,8 +788,6 @@ static struct l2cap_chan *chan_open(struct l2cap_chan *pchan)
        if (!chan)
                return NULL;
 
-       chan->state = BT_CONNECTED;
-
        return chan;
 }