aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/iscsi
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2012-06-11 12:49:13 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-07-16 20:29:11 -0400
commitc75660c5e42c1a3edc4df0d062b2bd73e69dadb7 (patch)
tree00889e1d02856d0ca7508d744794bf26fee29c02 /drivers/target/iscsi
parent44bfd0185043c9a92b2f20a4508dd6cd3bb84ded (diff)
target/iscsi: Remove dead code in lio_get_tpg_from_tpg_item()
It's got no callers... Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi')
-rw-r--r--drivers/target/iscsi/iscsi_target_configfs.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/drivers/target/iscsi/iscsi_target_configfs.c b/drivers/target/iscsi/iscsi_target_configfs.c
index 69dc8e35c03a..a7b25e783b58 100644
--- a/drivers/target/iscsi/iscsi_target_configfs.c
+++ b/drivers/target/iscsi/iscsi_target_configfs.c
@@ -47,28 +47,6 @@ struct lio_target_configfs_attribute {
47 ssize_t (*store)(void *, const char *, size_t); 47 ssize_t (*store)(void *, const char *, size_t);
48}; 48};
49 49
50struct iscsi_portal_group *lio_get_tpg_from_tpg_item(
51 struct config_item *item,
52 struct iscsi_tiqn **tiqn_out)
53{
54 struct se_portal_group *se_tpg = container_of(to_config_group(item),
55 struct se_portal_group, tpg_group);
56 struct iscsi_portal_group *tpg = se_tpg->se_tpg_fabric_ptr;
57 int ret;
58
59 if (!tpg) {
60 pr_err("Unable to locate struct iscsi_portal_group "
61 "pointer\n");
62 return NULL;
63 }
64 ret = iscsit_get_tpg(tpg);
65 if (ret < 0)
66 return NULL;
67
68 *tiqn_out = tpg->tpg_tiqn;
69 return tpg;
70}
71
72/* Start items for lio_target_portal_cit */ 50/* Start items for lio_target_portal_cit */
73 51
74static ssize_t lio_target_np_show_sctp( 52static ssize_t lio_target_np_show_sctp(