summaryrefslogtreecommitdiff
path: root/drivers/target/target_core_configfs.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-05-03 08:50:53 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2015-05-30 22:42:37 -0700
commitef0caf8dd149992796ee453b65dd0d77ff848f57 (patch)
treecf0c3b5317f3b22d3caa75d71cade943133b6de4 /drivers/target/target_core_configfs.c
parent45fb94c2925fc7d9b170f2d148f91556428eaa1d (diff)
target: don't copy fabric ops
Now that we don't need to set up ->tf_subsys we don't need to copy around the ops vector anymore. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_configfs.c')
-rw-r--r--drivers/target/target_core_configfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c
index 86caeb26f996..43c9ed1d1b92 100644
--- a/drivers/target/target_core_configfs.c
+++ b/drivers/target/target_core_configfs.c
@@ -444,7 +444,7 @@ int target_register_template(const struct target_core_fabric_ops *fo)
tf->tf_module = fo->module;
snprintf(tf->tf_name, TARGET_FABRIC_NAME_SIZE, "%s", fo->name);
- tf->tf_ops = *fo;
+ tf->tf_ops = fo;
target_fabric_setup_cits(tf);
mutex_lock(&g_tf_lock);