Skip to content

Commit 3734268

Browse files
alwa-nordicnashif
authored andcommitted
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 <[email protected]>
1 parent 76bceb9 commit 3734268

File tree

1 file changed

+0
-6
lines changed
  • tests/bsim/bluetooth/host/l2cap/credits_seg_recv/src

1 file changed

+0
-6
lines changed

tests/bsim/bluetooth/host/l2cap/credits_seg_recv/src/main.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,6 @@ int l2cap_chan_send(struct bt_l2cap_chan *chan, uint8_t *data, size_t len)
5959
return ret;
6060
}
6161

62-
struct net_buf *alloc_buf_cb(struct bt_l2cap_chan *chan)
63-
{
64-
return net_buf_alloc(&sdu_pool, K_NO_WAIT);
65-
}
66-
6762
void continue_sending(struct test_ctx *ctx)
6863
{
6964
struct bt_l2cap_chan *chan = &ctx->le_chan.chan;
@@ -137,7 +132,6 @@ void l2cap_chan_disconnected_cb(struct bt_l2cap_chan *chan)
137132
static struct bt_l2cap_chan_ops ops = {
138133
.connected = l2cap_chan_connected_cb,
139134
.disconnected = l2cap_chan_disconnected_cb,
140-
.alloc_buf = alloc_buf_cb,
141135
.seg_recv = recv_cb,
142136
.sent = sent_cb,
143137
};

0 commit comments

Comments
 (0)