static struct ct_vm_block *
get_vm_block(struct ct_vm *vm, unsigned int size)
{
- struct ct_vm_block *block = NULL, *entry = NULL;
- struct list_head *pos = NULL;
+ struct ct_vm_block *block = NULL, *entry;
+ struct list_head *pos;
size = CT_PAGE_ALIGN(size);
if (size > vm->size) {
static void put_vm_block(struct ct_vm *vm, struct ct_vm_block *block)
{
- struct ct_vm_block *entry = NULL, *pre_ent = NULL;
- struct list_head *pos = NULL, *pre = NULL;
+ struct ct_vm_block *entry, *pre_ent;
+ struct list_head *pos, *pre;
block->size = CT_PAGE_ALIGN(block->size);
void ct_vm_destroy(struct ct_vm *vm)
{
int i;
- struct list_head *pos = NULL;
- struct ct_vm_block *entry = NULL;
+ struct list_head *pos;
+ struct ct_vm_block *entry;
/* free used and unused list nodes */
while (!list_empty(&vm->used)) {