Skip to content

Commit

Permalink
simplify augment walk after insert
Browse files Browse the repository at this point in the history
  • Loading branch information
epsilon-0 committed Oct 16, 2023
1 parent 91c032b commit d112deb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions include/tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,8 @@ name##_RB_INSERT_FINISH(struct name *head, struct type *parent, \
else { \
_RB_SET_CHILD(parent, insdir, elm, field); \
tmp = name##_RB_INSERT_BALANCE(head, parent, elm); \
_RB_GET_PARENT(tmp, parent, field); \
} \
(void)_RB_AUGMENT(tmp); \
_RB_AUGMENT_WALK(head, parent, field); \
_RB_AUGMENT_WALK(head, tmp, field); \
return (NULL); \
} \
\
Expand Down

0 comments on commit d112deb

Please sign in to comment.