diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-06-01 03:10:53 -0700 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2017-06-08 23:26:38 -0700 |
commit | c17cd24959cdb12c855dc61e20c36fa25f21f3d3 (patch) | |
tree | b89b07fde0aad062ca3b6610049c1898fa04e025 /drivers/target/target_core_device.c | |
parent | 2237498f0b5c74768f688ebaf16eab2c708d5fdb (diff) | |
download | talos-obmc-linux-c17cd24959cdb12c855dc61e20c36fa25f21f3d3.tar.gz talos-obmc-linux-c17cd24959cdb12c855dc61e20c36fa25f21f3d3.zip |
target/configfs: Kill se_device->dev_link_magic
Instead of using a hardcoded magic value in se_device when verifying
a target config_item symlink source during target_fabric_port_link(),
go ahead and use target_core_dev_item_ops directly instead.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Mike Christie <mchristi@redhat.com>
Cc: Hannes Reinecke <hare@suse.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_device.c')
-rw-r--r-- | drivers/target/target_core_device.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c index a5762e601fa1..e4771cec108c 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c @@ -756,7 +756,6 @@ struct se_device *target_alloc_device(struct se_hba *hba, const char *name) if (!dev) return NULL; - dev->dev_link_magic = SE_DEV_LINK_MAGIC; dev->se_hba = hba; dev->transport = hba->backend->ops; dev->prot_length = sizeof(struct t10_pi_tuple); |