CLEANUP: list: Fix mt_list_for_each_entry_safe indentation
It makes the macro easier to read.
This commit is contained in:
parent
60cffbaca5
commit
4558437211
@ -766,7 +766,7 @@
|
|||||||
* you can safely break from this macro as the cleanup will be performed anyway,
|
* you can safely break from this macro as the cleanup will be performed anyway,
|
||||||
* but it is strictly forbidden to goto from the loop because skipping the cleanup will
|
* but it is strictly forbidden to goto from the loop because skipping the cleanup will
|
||||||
* lead to undefined behavior.
|
* lead to undefined behavior.
|
||||||
*
|
q *
|
||||||
* If you want to remove the current element, please use MT_LIST_DELETE_SAFE.
|
* If you want to remove the current element, please use MT_LIST_DELETE_SAFE.
|
||||||
*
|
*
|
||||||
* Example: list_for_each_entry_safe(cur_acl, list_head, list_member, elt1, elt2)
|
* Example: list_for_each_entry_safe(cur_acl, list_head, list_member, elt1, elt2)
|
||||||
@ -788,7 +788,7 @@
|
|||||||
_MT_LIST_UNLOCK_NEXT(tmpelt, tmpelt2.next); \
|
_MT_LIST_UNLOCK_NEXT(tmpelt, tmpelt2.next); \
|
||||||
} \
|
} \
|
||||||
} else { \
|
} else { \
|
||||||
/* last elem was deleted by user, relink required:
|
/* last elem was deleted by user, relink required: \
|
||||||
* prev->next = next
|
* prev->next = next
|
||||||
* next->prev = prev */ \
|
* next->prev = prev */ \
|
||||||
_MT_LIST_RELINK_DELETED(tmpelt2); \
|
_MT_LIST_RELINK_DELETED(tmpelt2); \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user