ring: use NULL instead of 0 for null pointers

This is consistent with the rest of the code making clear
fields are pointers.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Uri Lublin <uril@redhat.com>
Acked-by: Victor Toso <victortoso@redhat.com>
This commit is contained in:
Frediano Ziglio 2015-12-23 14:19:00 +00:00
parent 397eb47816
commit 80cc3f680a

View File

@ -74,7 +74,7 @@ static inline void __ring_remove(RingItem *item)
{
item->next->prev = item->prev;
item->prev->next = item->next;
item->prev = item->next = 0;
item->prev = item->next = NULL;
}
static inline void ring_remove(RingItem *item)