diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-02-28 03:22:12 -0500 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-03-10 17:42:55 -0500 |
commit | c7ec05c82bfd6acf1fd800d628591500805f3179 (patch) | |
tree | c64d5d330120d038f5ee9fe90b7a7eba0a0b3459 /drivers/target/target_core_configfs.c | |
parent | 99367f01b8df2018ff3328ddf4111e701d34188d (diff) |
target: Drop unused legacy target_core_fabric_ops API callers
This patch drops the following unused legacy API callers from target_core_fabric.h:
*) TFO->fall_back_to_erl0()
*) TFO->stop_session()
*) TFO->sess_logged_in()
*) TFO->is_state_remove()
This patch also removes the stub usage in loopback, tcm_fc, iscsi_target,
and ib_srpt fabric modules.
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.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c index 2ecde0d4d4e5..72bd7f5d6795 100644 --- a/drivers/target/target_core_configfs.c +++ b/drivers/target/target_core_configfs.c | |||
@@ -421,18 +421,6 @@ static int target_fabric_tf_ops_check( | |||
421 | pr_err("Missing tfo->close_session()\n"); | 421 | pr_err("Missing tfo->close_session()\n"); |
422 | return -EINVAL; | 422 | return -EINVAL; |
423 | } | 423 | } |
424 | if (!tfo->stop_session) { | ||
425 | pr_err("Missing tfo->stop_session()\n"); | ||
426 | return -EINVAL; | ||
427 | } | ||
428 | if (!tfo->fall_back_to_erl0) { | ||
429 | pr_err("Missing tfo->fall_back_to_erl0()\n"); | ||
430 | return -EINVAL; | ||
431 | } | ||
432 | if (!tfo->sess_logged_in) { | ||
433 | pr_err("Missing tfo->sess_logged_in()\n"); | ||
434 | return -EINVAL; | ||
435 | } | ||
436 | if (!tfo->sess_get_index) { | 424 | if (!tfo->sess_get_index) { |
437 | pr_err("Missing tfo->sess_get_index()\n"); | 425 | pr_err("Missing tfo->sess_get_index()\n"); |
438 | return -EINVAL; | 426 | return -EINVAL; |
@@ -477,10 +465,6 @@ static int target_fabric_tf_ops_check( | |||
477 | pr_err("Missing tfo->get_fabric_sense_len()\n"); | 465 | pr_err("Missing tfo->get_fabric_sense_len()\n"); |
478 | return -EINVAL; | 466 | return -EINVAL; |
479 | } | 467 | } |
480 | if (!tfo->is_state_remove) { | ||
481 | pr_err("Missing tfo->is_state_remove()\n"); | ||
482 | return -EINVAL; | ||
483 | } | ||
484 | /* | 468 | /* |
485 | * We at least require tfo->fabric_make_wwn(), tfo->fabric_drop_wwn() | 469 | * We at least require tfo->fabric_make_wwn(), tfo->fabric_drop_wwn() |
486 | * tfo->fabric_make_tpg() and tfo->fabric_drop_tpg() in | 470 | * tfo->fabric_make_tpg() and tfo->fabric_drop_tpg() in |