Skip to content
Commit 3b63a43f authored by Monam Agarwal's avatar Monam Agarwal Committed by Paolo Bonzini
Browse files

arch/x86: Use RCU_INIT_POINTER(x, NULL) in kvm/vmx.c



Here rcu_assign_pointer() is ensuring that the
initialization of a structure is carried out before storing a pointer
to that structure.
So, rcu_assign_pointer(p, NULL) can always safely be converted to
RCU_INIT_POINTER(p, NULL).

Signed-off-by: default avatarMonam Agarwal <monamagarwal123@gmail.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 15fc0752
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment