Bugfix for list_init macro

This commit is contained in:
Felix Kopp 2020-10-14 17:56:43 +02:00
parent ef2142c551
commit d37e139ddd
No known key found for this signature in database
GPG key ID: C478BA0A85F75728

View file

@ -17,8 +17,8 @@ struct list_head {
}
#define list_init(head) ({ \
(head).next = &(head); \
(head).prev = &(head); \
(head).next = head; \
(head).prev = head; \
})
#define list_entry(ptr, type, member) \