From: Michael Buesch Date: Sat, 17 Nov 2007 23:37:49 +0000 (+0100) Subject: dasm: list_empty() can use a const pointer. X-Git-Tag: b43-fwcutter-013~81 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=234a3cf2edb9b3e985242d7ff44984cbe749e8a4;p=b43-tools.git dasm: list_empty() can use a const pointer. Signed-off-by: Michael Buesch --- diff --git a/disassembler/list.h b/disassembler/list.h index ce26357..7846424 100644 --- a/disassembler/list.h +++ b/disassembler/list.h @@ -163,7 +163,7 @@ static inline void list_move_tail(struct list_head *list, * list_empty - tests whether a list is empty * @head: the list to test. */ -static inline int list_empty(struct list_head *head) +static inline int list_empty(const struct list_head *head) { return head->next == head; }