From 3e8ec99afcae5d470f7dce8780e03d62e6cba5ae Mon Sep 17 00:00:00 2001 From: ed Date: Thu, 14 Jan 2016 07:27:42 +0000 Subject: 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. --- lib/libc/stdlib/tdelete.c | 1 - 1 file changed, 1 deletion(-) (limited to 'lib') diff --git a/lib/libc/stdlib/tdelete.c b/lib/libc/stdlib/tdelete.c index 7799f35..ff63576 100644 --- a/lib/libc/stdlib/tdelete.c +++ b/lib/libc/stdlib/tdelete.c @@ -62,7 +62,6 @@ __FBSDID("$FreeBSD$"); base = leaf; \ path_init(&path); \ } \ - result = &(*leaf)->key; \ path_taking_right(&path); \ leaf = &(*leaf)->rlink; \ } while (0) -- cgit v1.1