Skip to content

Commit d112deb

Browse files
committed
simplify augment walk after insert
1 parent 91c032b commit d112deb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/tree.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,10 +330,8 @@ name##_RB_INSERT_FINISH(struct name *head, struct type *parent, \
330330
else { \
331331
_RB_SET_CHILD(parent, insdir, elm, field); \
332332
tmp = name##_RB_INSERT_BALANCE(head, parent, elm); \
333-
_RB_GET_PARENT(tmp, parent, field); \
334333
} \
335-
(void)_RB_AUGMENT(tmp); \
336-
_RB_AUGMENT_WALK(head, parent, field); \
334+
_RB_AUGMENT_WALK(head, tmp, field); \
337335
return (NULL); \
338336
} \
339337
\

0 commit comments

Comments
 (0)