mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293879
@ -62,7 +62,6 @@ __FBSDID("$FreeBSD$");
|
|||||||
base = leaf; \
|
base = leaf; \
|
||||||
path_init(&path); \
|
path_init(&path); \
|
||||||
} \
|
} \
|
||||||
result = &(*leaf)->key; \
|
|
||||||
path_taking_right(&path); \
|
path_taking_right(&path); \
|
||||||
leaf = &(*leaf)->rlink; \
|
leaf = &(*leaf)->rlink; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
Loading…
Reference in New Issue
Block a user