mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 06:18:40 +08:00
include: queue.h: Make flink clear after sq_rem
In the previous design, this member may be cleared or not cleared, which results in the API's side effects not being a clear property. Signed-off-by: Lingao Meng <menglingao@xiaomi.com>
This commit is contained in:
parent
1d5f0245ab
commit
c2b89540d2
1 changed files with 4 additions and 0 deletions
|
@ -188,6 +188,10 @@
|
|||
{ \
|
||||
(q)->tail = NULL; \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
tmp_node->flink = NULL; \
|
||||
} \
|
||||
} \
|
||||
else \
|
||||
{ \
|
||||
|
|
Loading…
Reference in a new issue