--- ptrlist.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) 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) || \ -- 2.13.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html