mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice-common
synced 2025-12-26 14:18:36 +00:00
ring: Remove __ring_remove function
Is just used by ring_remove, no reason to have it. Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Christophe de Dinechin <dinechin@redhat.com>
This commit is contained in:
parent
c2f2096d90
commit
c208ca85cd
@ -70,19 +70,14 @@ static inline void ring_add_before(RingItem *item, RingItem *pos)
|
||||
ring_add(pos->prev, item);
|
||||
}
|
||||
|
||||
static inline void __ring_remove(RingItem *item)
|
||||
{
|
||||
item->next->prev = item->prev;
|
||||
item->prev->next = item->next;
|
||||
item->prev = item->next = NULL;
|
||||
}
|
||||
|
||||
static inline void ring_remove(RingItem *item)
|
||||
{
|
||||
spice_assert(item->next != NULL && item->prev != NULL);
|
||||
spice_assert(item->next != item);
|
||||
|
||||
__ring_remove(item);
|
||||
item->next->prev = item->prev;
|
||||
item->prev->next = item->next;
|
||||
item->prev = item->next = NULL;
|
||||
}
|
||||
|
||||
static inline RingItem *ring_get_head(Ring *ring)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user