diff options
author | ed <ed@FreeBSD.org> | 2016-01-14 07:27:42 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2016-01-14 07:27:42 +0000 |
commit | 3e8ec99afcae5d470f7dce8780e03d62e6cba5ae (patch) | |
tree | 346842c9d06f2a617f536cecc94769461cfee77a /lib | |
parent | 88a8680a451916ff229aa973842bd01738f6eac2 (diff) | |
download | FreeBSD-src-3e8ec99afcae5d470f7dce8780e03d62e6cba5ae.zip FreeBSD-src-3e8ec99afcae5d470f7dce8780e03d62e6cba5ae.tar.gz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc/stdlib/tdelete.c | 1 |
1 files changed, 0 insertions, 1 deletions
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) |