]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iwlwifi: mvm: Use RCU_INIT_POINTER(x, NULL)
authorMonam Agarwal <monamagarwal123@gmail.com>
Sun, 23 Mar 2014 18:35:56 +0000 (00:05 +0530)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 13 Apr 2014 06:36:02 +0000 (09:36 +0300)
commitc531c77150693759ca0b886a80973d6ae6a1a0d5
treee69f22999344031c2f7bd615f313f776971fc158
parent003e3c4e45bfb5b5b7793df8f786989791ef763e
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: Monam Agarwal <monamagarwal123@gmail.com>
[rewrite commit log]
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/sta.c