[PATCH 05/13] ptrlist: make free_ptr_list() more readable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The macro free_ptr_lis() is much longer than 80 columns.

Make it more readable by splitting its long definition in three
separate lines.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 ptrlist.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/ptrlist.h b/ptrlist.h
index cb3e989a3..569ae5179 100644
--- a/ptrlist.h
+++ b/ptrlist.h
@@ -59,8 +59,10 @@ extern int linearize_ptr_list(struct ptr_list *, void **, int);
 		(__typeof__(&(ptr))) __add_ptr_list_tag(head, ptr, tag);	\
 	})
 
-#define free_ptr_list(list) \
-	do { VRFY_PTR_LIST(*(list)); __free_ptr_list((struct ptr_list **)(list)); } while (0)
+#define free_ptr_list(list)	do {				\
+		VRFY_PTR_LIST(*(list));				\
+		__free_ptr_list((struct ptr_list **)(list));	\
+	} while (0)
 
 #define PTR_UNTAG(p)		((void*)(~3UL & (unsigned long)(p)))
 #define PTR_ENTRY_NOTAG(h,i)	((h)->list[i])
-- 
2.17.1

--
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



[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux