diff options
author | Monam Agarwal <monamagarwal123@gmail.com> | 2014-03-24 00:05:56 +0530 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-04-13 09:36:02 +0300 |
commit | c531c77150693759ca0b886a80973d6ae6a1a0d5 (patch) | |
tree | e69f22999344031c2f7bd615f313f776971fc158 /firmware | |
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>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions