queue: Fixed using incorrect init macro
k_queue uses a sflist. The macro used for initialising the list is the slist not sflist macro. This commit just changes the macro to use the sflist init macro. Fixes #28912 Signed-off-by: Toby Firth <tobyjfirth@gmail.com>
This commit is contained in:
parent
2d7ccb59a9
commit
680ec0bad7
1 changed files with 1 additions and 1 deletions
|
@ -2147,7 +2147,7 @@ struct k_queue {
|
|||
|
||||
#define Z_QUEUE_INITIALIZER(obj) \
|
||||
{ \
|
||||
.data_q = SYS_SLIST_STATIC_INIT(&obj.data_q), \
|
||||
.data_q = SYS_SFLIST_STATIC_INIT(&obj.data_q), \
|
||||
.lock = { }, \
|
||||
.wait_q = Z_WAIT_Q_INIT(&obj.wait_q), \
|
||||
_POLL_EVENT_OBJ_INIT(obj) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue