1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

- Eliminate a pair of unnecessary variables.

This commit is contained in:
Jeff Roberson 2003-09-19 06:41:06 +00:00
parent cae33c1429
commit b983089a05
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120219

View File

@ -1496,14 +1496,12 @@ uma_zalloc_arg(uma_zone_t zone, void *udata, int flags)
* 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 @@ uma_zfree_arg(uma_zone_t zone, void *item, void *udata)
*/
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;
}
}