svn commit: r281771 - head/sys/vm

Alan Cox alc at FreeBSD.org
Mon Apr 20 16:48:22 UTC 2015


Author: alc
Date: Mon Apr 20 16:48:21 2015
New Revision: 281771
URL: https://svnweb.freebsd.org/changeset/base/281771

Log:
  Eliminate an unused variable.
  
  MFC after:	1 week

Modified:
  head/sys/vm/uma_core.c

Modified: head/sys/vm/uma_core.c
==============================================================================
--- head/sys/vm/uma_core.c	Mon Apr 20 16:40:13 2015	(r281770)
+++ head/sys/vm/uma_core.c	Mon Apr 20 16:48:21 2015	(r281771)
@@ -307,9 +307,8 @@ bucket_init(void)
 {
 	struct uma_bucket_zone *ubz;
 	int size;
-	int i;
 
-	for (i = 0, ubz = &bucket_zones[0]; ubz->ubz_entries != 0; ubz++) {
+	for (ubz = &bucket_zones[0]; ubz->ubz_entries != 0; ubz++) {
 		size = roundup(sizeof(struct uma_bucket), sizeof(void *));
 		size += sizeof(void *) * ubz->ubz_entries;
 		ubz->ubz_zone = uma_zcreate(ubz->ubz_name, size,


More information about the svn-src-all mailing list