Skip to content
Commit 9da02caf authored by Johan Hedberg's avatar Johan Hedberg Committed by Johan Hedberg
Browse files

net: buf: Make net_buf_simple_init() forward compatible



Make it safe to call net_buf_simple_init() even if the buffer was
created using the new macros. This is possible to detect since with
the new macros buf->__buf will be non-NULL and with the old
NET_BUF_SIMPLE() macro it will be NULL.

Signed-off-by: default avatarJohan Hedberg <johan.hedberg@intel.com>
parent 53619632
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment