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

Skip to content
Commit c531c771 authored by Monam Agarwal's avatar Monam Agarwal Committed by Emmanuel Grumbach
Browse files

iwlwifi: mvm: Use RCU_INIT_POINTER(x, NULL)



rcu_assign_pointer() ensures that the initialization of a structure is
carried out before storing a pointer to that structure. However, in the
case that NULL is assigned there's no structure to initialize so using
RCU_INIT_POINTER instead is safe and more efficient.

Signed-off-by: default avatarMonam Agarwal <monamagarwal123@gmail.com>
[rewrite commit log]
Signed-off-by: default avatarEmmanuel Grumbach <emmanuel.grumbach@intel.com>
parent 003e3c4e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment