Commit 8e604494 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Change list_emtpy() to take a const pointer

From:  "Perez-Gonzalez, Inaky" <inaky.perez-gonzalez@intel.com>
parent 4322576f
......@@ -203,7 +203,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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment