From 234a3cf2edb9b3e985242d7ff44984cbe749e8a4 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Sun, 18 Nov 2007 00:37:49 +0100 Subject: [PATCH] dasm: list_empty() can use a const pointer. Signed-off-by: Michael Buesch --- disassembler/list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.31.1