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:
parent
92fb477641
commit
0921979adc
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue