staging/rdma/hfi1: use RCU_INIT_POINTER() when NULLing.
authorMuhammad Falak R Wani <falakreyaz@gmail.com>
Sun, 1 May 2016 12:35:31 +0000 (18:05 +0530)
committerDoug Ledford <dledford@redhat.com>
Fri, 13 May 2016 23:39:20 +0000 (19:39 -0400)
commiteea570788ebeb817a5ecb173dafc316779120081
tree07a203f5c509cfc329c91bc35a404ed7395f7a43
parent3923979e9bc6aa6f168a644314d6729e9f98eccc
staging/rdma/hfi1: use RCU_INIT_POINTER() when NULLing.

It is safe to use RCU_INIT_POINTER() to NULL a pointer, instead of
rcu_assign_pointer().
This results in slightly smaller/faster code.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/init.c