commit | c531c77150693759ca0b886a80973d6ae6a1a0d5 | [log] [tgz] |
---|---|---|
author | Monam Agarwal <monamagarwal123@gmail.com> | Mon Mar 24 00:05:56 2014 +0530 |
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | Sun Apr 13 09:36:02 2014 +0300 |
tree | e69f22999344031c2f7bd615f313f776971fc158 | |
parent | 003e3c4e45bfb5b5b7793df8f786989791ef763e [diff] |
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>