Remove an unneeded assignment of the return value.
tdelete() is supposed to return the address of the parent node that has been deleted. We already keep track of this node in the loop between lines 94-107. The GO_LEFT()/GO_RIGHT() macros are used later on as well, so we must make sure not to change it to something else.
This commit is contained in:
parent
4c29cf96d4
commit
3196923796
@ -62,7 +62,6 @@ __FBSDID("$FreeBSD$");
|
||||
base = leaf; \
|
||||
path_init(&path); \
|
||||
} \
|
||||
result = &(*leaf)->key; \
|
||||
path_taking_right(&path); \
|
||||
leaf = &(*leaf)->rlink; \
|
||||
} while (0)
|
||||
|
Loading…
Reference in New Issue
Block a user