Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0fa24ce3 authored by Ioan Orghici's avatar Ioan Orghici Committed by Gleb Natapov
Browse files

kvm: remove cast for kmalloc return value

parent 7bc7ae25
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -5286,8 +5286,7 @@ static struct loaded_vmcs *nested_get_current_vmcs02(struct vcpu_vmx *vmx)
	}

	/* Create a new VMCS */
	item = (struct vmcs02_list *)
		kmalloc(sizeof(struct vmcs02_list), GFP_KERNEL);
	item = kmalloc(sizeof(struct vmcs02_list), GFP_KERNEL);
	if (!item)
		return NULL;
	item->vmcs02.vmcs = alloc_vmcs();