Frediano Ziglio writes: >> >> Frediano Ziglio writes: >> >> > Is just used by ring_remove, no reason to have it. >> >> Nack. I think there is a good reason: the code and its intent is much >> clearer with a "ring_remove" name. >> > > Don't get it... are you saying __ring_remove name is more clear than > ring_remove ? No, I had not seen that there were two functions! Acked-by: Christophe de Dinechin <dinechin@xxxxxxxxxx> > >> >> > >> > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> >> > --- >> > common/ring.h | 11 +++-------- >> > 1 file changed, 3 insertions(+), 8 deletions(-) >> > >> > diff --git a/common/ring.h b/common/ring.h >> > index 4b0e313..036c098 100644 >> > --- a/common/ring.h >> > +++ b/common/ring.h >> > @@ -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) >> >> >> -- >> Cheers, >> Christophe de Dinechin (IRC c3d) >> > _______________________________________________ > Spice-devel mailing list > Spice-devel@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/spice-devel -- Cheers, Christophe de Dinechin (IRC c3d) _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel