aboutsummaryrefslogtreecommitdiff
path: root/sys/vm/uma_core.c
diff options
context:
space:
mode:
authorJeff Roberson <jeff@FreeBSD.org>2003-09-19 06:41:06 +0000
committerJeff Roberson <jeff@FreeBSD.org>2003-09-19 06:41:06 +0000
commitb983089a055a4933bfc1cf9949b1f115a0c72195 (patch)
tree952d3731b984bb038b87f9fb8eea5b498c8e9163 /sys/vm/uma_core.c
parentcae33c14291339048a4b1365bb3fb45d82ef68b0 (diff)
downloadsrc-b983089a055a4933bfc1cf9949b1f115a0c72195.tar.gz
src-b983089a055a4933bfc1cf9949b1f115a0c72195.zip
- Eliminate a pair of unnecessary variables.
Notes
Notes: svn path=/head/; revision=120219
Diffstat (limited to 'sys/vm/uma_core.c')
-rw-r--r--sys/vm/uma_core.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 225f15cc7932..e5057ace65bf 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -1496,14 +1496,12 @@ zalloc_start:
* See if we can switch with our free bucket.
*/
if (cache->uc_freebucket->ub_cnt > 0) {
- uma_bucket_t swap;
-
#ifdef UMA_DEBUG_ALLOC
printf("uma_zalloc: Swapping empty with alloc.\n");
#endif
- swap = cache->uc_freebucket;
+ bucket = cache->uc_freebucket;
cache->uc_freebucket = cache->uc_allocbucket;
- cache->uc_allocbucket = swap;
+ cache->uc_allocbucket = bucket;
goto zalloc_start;
}
@@ -1838,12 +1836,9 @@ zfree_start:
*/
if (cache->uc_allocbucket->ub_cnt <
cache->uc_freebucket->ub_cnt) {
- uma_bucket_t swap;
-
- swap = cache->uc_freebucket;
+ bucket = cache->uc_freebucket;
cache->uc_freebucket = cache->uc_allocbucket;
- cache->uc_allocbucket = swap;
-
+ cache->uc_allocbucket = bucket;
goto zfree_start;
}
}