svn commit: r293879 - head/lib/libc/stdlib

Ed Schouten ed at FreeBSD.org
Thu Jan 14 07:27:44 UTC 2016


Author: ed
Date: Thu Jan 14 07:27:42 2016
New Revision: 293879
URL: https://svnweb.freebsd.org/changeset/base/293879

Log:
  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.

Modified:
  head/lib/libc/stdlib/tdelete.c

Modified: head/lib/libc/stdlib/tdelete.c
==============================================================================
--- head/lib/libc/stdlib/tdelete.c	Thu Jan 14 07:27:14 2016	(r293878)
+++ head/lib/libc/stdlib/tdelete.c	Thu Jan 14 07:27:42 2016	(r293879)
@@ -62,7 +62,6 @@ __FBSDID("$FreeBSD$");
 		base = leaf;						\
 		path_init(&path);					\
 	}								\
-	result = &(*leaf)->key;						\
 	path_taking_right(&path);					\
 	leaf = &(*leaf)->rlink;						\
 } while (0)


More information about the svn-src-head mailing list