diff mbox

[12/34] ptrlist: simplify initialization of DO_REVERSE()'s cursor

Message ID 20170707134002.49500-13-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 | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
diff mbox

Patch

diff --git a/ptrlist.h b/ptrlist.h
index 8941c339a..0d17237f5 100644
--- a/ptrlist.h
+++ b/ptrlist.h
@@ -194,10 +194,7 @@  static inline void *last_ptr_list(struct ptr_list *list)
 } while (0)
 
 #define DO_REVERSE(ptr, __cur, new, __newcur, PTR_ENTRY) do {				\
-	struct ptr_cur __newcur;							\
-	__newcur.h = __cur.h;								\
-	__newcur.l = __cur.l;								\
-	__newcur.n = __cur.n;								\
+	struct ptr_cur __newcur = __cur;						\
 	new = ptr;									\
 	goto __inside##new;								\
 	do {										\