Bugfix for list_init macro
This commit is contained in:
parent
ef2142c551
commit
d37e139ddd
1 changed files with 2 additions and 2 deletions
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue