We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe2b3af commit f99b7a0Copy full SHA for f99b7a0
src/utility/HCIVirtualTransportZephyr.cpp
@@ -58,7 +58,7 @@ int HCIVirtualTransportZephyrClass::available()
58
}
59
60
static struct net_buf *buf;
61
- buf = (struct net_buf*)k_fifo_get(__rx_queue, K_MSEC(10));
+ buf = (struct net_buf*)k_fifo_get(__rx_queue, K_MSEC(10));
62
if (!buf) {
63
return 0;
64
@@ -68,9 +68,9 @@ int HCIVirtualTransportZephyrClass::available()
68
69
net_buf_pull(buf, buf->len);
70
if (!buf->len) {
71
- net_buf_unref(buf);
72
- buf = NULL;
73
- }
+ net_buf_unref(buf);
+ buf = NULL;
+ }
74
75
return rxbuf.available();
76
0 commit comments