summaryrefslogtreecommitdiff
path: root/drivers/target/iscsi/iscsi_target_device.c
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2012-01-20 01:39:14 +0400
committerNicholas Bellinger <nab@linux-iscsi.org>2012-02-26 02:37:47 +0400
commit4f26998a79b30a5c912cfa1a759fa0c3e6f6414e (patch)
treeb69fd7ed5d387edb81364e29cf484eaae99d2f05 /drivers/target/iscsi/iscsi_target_device.c
parentef28640497f5935bf614e1e29b16972d8b97cdb2 (diff)
downloadlinux-4f26998a79b30a5c912cfa1a759fa0c3e6f6414e.tar.xz
target/iscsi: Remove unneeded wrapper functions
iscsit_get_lun_for_{cmd,tmr} are unnecessary. Signed-off-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/iscsi/iscsi_target_device.c')
-rw-r--r--drivers/target/iscsi/iscsi_target_device.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/drivers/target/iscsi/iscsi_target_device.c b/drivers/target/iscsi/iscsi_target_device.c
index f63ea35bc4ae..bcc409853a67 100644
--- a/drivers/target/iscsi/iscsi_target_device.c
+++ b/drivers/target/iscsi/iscsi_target_device.c
@@ -28,25 +28,6 @@
#include "iscsi_target_tpg.h"
#include "iscsi_target_util.h"
-int iscsit_get_lun_for_tmr(
- struct iscsi_cmd *cmd,
- u64 lun)
-{
- u32 unpacked_lun = scsilun_to_int((struct scsi_lun *)&lun);
-
- return transport_lookup_tmr_lun(&cmd->se_cmd, unpacked_lun);
-}
-
-int iscsit_get_lun_for_cmd(
- struct iscsi_cmd *cmd,
- unsigned char *cdb,
- u64 lun)
-{
- u32 unpacked_lun = scsilun_to_int((struct scsi_lun *)&lun);
-
- return transport_lookup_cmd_lun(&cmd->se_cmd, unpacked_lun);
-}
-
void iscsit_determine_maxcmdsn(struct iscsi_session *sess)
{
struct se_node_acl *se_nacl;