diff mbox

[19/34] ptrlist: remove unneeded DO_INIT()

Message ID 20170707134002.49500-20-luc.vanoostenryck@gmail.com (mailing list archive)
State Rejected, archived
Headers show

Commit Message

Luc Van Oostenryck July 7, 2017, 1:39 p.m. UTC
---
 ptrlist.h | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)
diff mbox

Patch

diff --git a/ptrlist.h b/ptrlist.h
index c3538a260..0e6d30b99 100644
--- a/ptrlist.h
+++ b/ptrlist.h
@@ -113,18 +113,8 @@  static inline void *last_ptr_list(struct ptr_list *list)
 	return __PTR_STRIP_TAG(ptr_cur_entry(&cur));
 }
 
-static inline void ptr_cur_init(struct ptr_cur *cur, struct ptr_list *head)
-{
-	cur->h = head;
-	cur->l = head;
-	cur->n = 0;
-}
-
-#define DO_INIT(cur, head)	\
-	ptr_cur_init(&cur, (struct ptr_list *) head)
-
 #define DO_PREPARE(head, ptr, __cur, CUR_ENTRY)						\
-	do {										\
+do {										\
 		struct ptr_cur __cur;							\
 		CHECK_TYPE(head,ptr);							\
 		if (!ptr_cur_beg(&__cur, (struct ptr_list *)head) ||			\