summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_ua.h
diff options
context:
space:
mode:
authorAndreea-Cristina Bernat <bernat.ada@gmail.com>2014-08-18 16:05:37 +0400
committerNicholas Bellinger <nab@linux-iscsi.org>2014-09-16 01:27:33 +0400
commitc04047eceed45ae210d020868672456c33cae300 (patch)
tree464906d52d206f26b47425fc9e5e1c9fc54cebda /drivers/target/target_core_ua.h
parente1ea97fef0cd579fd7ef3851548e068eaf2ad9f0 (diff)
downloadlinux-c04047eceed45ae210d020868672456c33cae300.tar.xz
tcm_fc: Replace rcu_assign_pointer() with RCU_INIT_POINTER()
The use of "rcu_assign_pointer()" is NULLing out the pointer. According to RCU_INIT_POINTER()'s block comment: "1. This use of RCU_INIT_POINTER() is NULLing out the pointer" it is better to use it instead of rcu_assign_pointer() because it has a smaller overhead. The following Coccinelle semantic patch was used: @@ @@ - rcu_assign_pointer + RCU_INIT_POINTER (..., NULL) Signed-off-by: Andreea-Cristina Bernat <bernat.ada@gmail.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_ua.h')
0 files changed, 0 insertions, 0 deletions