mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
qemu/queue.h: simplify reverse access to QTAILQ
The new definition of QTAILQ does not require passing the headname, remove it. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
7274f01bb8
commit
eae3eb3e18
27 changed files with 49 additions and 54 deletions
|
@ -104,7 +104,7 @@ static void mlist_coalesce(MemList *head, MemBlock *node)
|
|||
|
||||
do {
|
||||
merge = 0;
|
||||
left = QTAILQ_PREV(node, MemList, MLIST_ENTNAME);
|
||||
left = QTAILQ_PREV(node, MLIST_ENTNAME);
|
||||
right = QTAILQ_NEXT(node, MLIST_ENTNAME);
|
||||
|
||||
/* clowns to the left of me */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue