From 80cc3f680a1da4cfc7b2bc1666903086072ce1de Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Wed, 23 Dec 2015 14:19:00 +0000 Subject: 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 Acked-by: Uri Lublin Acked-by: Victor Toso --- common/ring.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/ring.h b/common/ring.h index 890e5cd..b13bc7d 100644 --- a/common/ring.h +++ b/common/ring.h @@ -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) -- cgit