Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 630ef791 authored by Johan Hedberg's avatar Johan Hedberg Committed by Marcel Holtmann
Browse files

Bluetooth: 6lowpan: Remove unnecessary chan_open() function



All the chan_open() function now does is to call chan_create() so it
doesn't really add any value.

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
Acked-by: default avatarJukka Rissanen <jukka.rissanen@linux.intel.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent b0c09f94
Loading
Loading
Loading
Loading
+4 −12
Original line number Original line Diff line number Diff line
@@ -780,17 +780,6 @@ static struct l2cap_chan *chan_create(void)
	return chan;
	return chan;
}
}


static struct l2cap_chan *chan_open(struct l2cap_chan *pchan)
{
	struct l2cap_chan *chan;

	chan = chan_create();
	if (!chan)
		return NULL;

	return chan;
}

static void set_ip_addr_bits(u8 addr_type, u8 *addr)
static void set_ip_addr_bits(u8 addr_type, u8 *addr)
{
{
	if (addr_type == BDADDR_LE_PUBLIC)
	if (addr_type == BDADDR_LE_PUBLIC)
@@ -913,7 +902,10 @@ static inline struct l2cap_chan *chan_new_conn_cb(struct l2cap_chan *pchan)
{
{
	struct l2cap_chan *chan;
	struct l2cap_chan *chan;


	chan = chan_open(pchan);
	chan = chan_create();
	if (!chan)
		return NULL;

	chan->ops = pchan->ops;
	chan->ops = pchan->ops;


	BT_DBG("chan %p pchan %p", chan, pchan);
	BT_DBG("chan %p pchan %p", chan, pchan);