Bluetooth: Drivers: Fix bad return for bt_esp_evt_recv

Instead of returning NULL, the function had a `continue`.

Signed-off-by: Emil Gydesen <emil.gydesen@nordicsemi.no>
This commit is contained in:
Emil Gydesen 2021-12-28 10:10:52 +01:00 committed by Christopher Friedt
parent 92fb477641
commit 0921979adc

View file

@ -93,7 +93,7 @@ static struct net_buf *bt_esp_evt_recv(uint8_t *data, size_t remaining)
BT_ERR("Not enough space in buffer %zu/%zu",
remaining, buf_tailroom);
net_buf_unref(buf);
continue;
return NULL;
}
net_buf_add_mem(buf, data, remaining);