summaryrefslogtreecommitdiff
path: root/kern/list.h
diff options
context:
space:
mode:
Diffstat (limited to 'kern/list.h')
-rw-r--r--kern/list.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/kern/list.h b/kern/list.h
index e64f5fd9..c85e8c15 100644
--- a/kern/list.h
+++ b/kern/list.h
@@ -186,8 +186,9 @@ list_concat(struct list *list1, const struct list *list2)
{
struct list *last1, *first2, *last2;
- if (list_empty(list2))
+ if (list_empty(list2)) {
return;
+ }
last1 = list1->prev;
first2 = list2->next;