]> git.baikalelectronics.ru Git - 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)
commit669e074a2419279ede850f2b161b5073cd9e4a85
treee69f22999344031c2f7bd615f313f776971fc158
parent2f3b0b207bc20af76adbe89ba96e5f1d421f165e
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