27fc467e74
To avoid extra logic in code that creates net_buf fragment lists, make it possible to pass a NULL pointer as the head net_buf when there are no previous buffers. Before this change the code would look like this: if (head) { net_buf_frag_add(head, buf); } else { head = net_buf_ref(buf); } After the patch the code can simply do: head = net_buf_frag_add(head, buf); This will then do the right thing regardless if head is NULL or non-NULL. Change-Id: I300394242e2e243ed3839b25629ec816dd98c148 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> |
||
---|---|---|
.. | ||
bluetooth | ||
ip | ||
Kconfig | ||
Makefile | ||
buf.c |