Bluetooth: host: Remove useless alloc_buf_cb in test
The alloc_buf callback is not used when `seg_recv` is set, so it is never called in this test. Remove it. Signed-off-by: Aleksander Wasaznik <aleksander.wasaznik@nordicsemi.no>
This commit is contained in:
parent
76bceb9ed2
commit
3734268f90
1 changed files with 0 additions and 6 deletions
|
@ -59,11 +59,6 @@ int l2cap_chan_send(struct bt_l2cap_chan *chan, uint8_t *data, size_t len)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct net_buf *alloc_buf_cb(struct bt_l2cap_chan *chan)
|
|
||||||
{
|
|
||||||
return net_buf_alloc(&sdu_pool, K_NO_WAIT);
|
|
||||||
}
|
|
||||||
|
|
||||||
void continue_sending(struct test_ctx *ctx)
|
void continue_sending(struct test_ctx *ctx)
|
||||||
{
|
{
|
||||||
struct bt_l2cap_chan *chan = &ctx->le_chan.chan;
|
struct bt_l2cap_chan *chan = &ctx->le_chan.chan;
|
||||||
|
@ -137,7 +132,6 @@ void l2cap_chan_disconnected_cb(struct bt_l2cap_chan *chan)
|
||||||
static struct bt_l2cap_chan_ops ops = {
|
static struct bt_l2cap_chan_ops ops = {
|
||||||
.connected = l2cap_chan_connected_cb,
|
.connected = l2cap_chan_connected_cb,
|
||||||
.disconnected = l2cap_chan_disconnected_cb,
|
.disconnected = l2cap_chan_disconnected_cb,
|
||||||
.alloc_buf = alloc_buf_cb,
|
|
||||||
.seg_recv = recv_cb,
|
.seg_recv = recv_cb,
|
||||||
.sent = sent_cb,
|
.sent = sent_cb,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue