diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-07-19 04:09:01 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-07-22 05:37:42 -0400 |
commit | efa4988d72c69d3024ee25ad1ae87c83b9f8267e (patch) | |
tree | 7ee08a9e843d21a0163cbaa579f9b042ed929b29 /drivers/target/loopback | |
parent | e434f1f182674d775c52869d49f714a2614d1c66 (diff) |
target: Remove unnecessary *cdb transport_get_lun_for_cmd parameter
This patch removes the now unnecessary 'unsigned char *cdb' function
parameter from transport_get_lun_for_cmd(). This also includes updating
lio-target, tcm_loop and tcm_fc usage of transport_get_lun_for_cmd().
Reported-by: Fubo Chen <fubo.chen@gmail.com>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/loopback')
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 70c2e7fa6664..2d0f22a91f67 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -122,7 +122,7 @@ static struct se_cmd *tcm_loop_allocate_core_cmd( | |||
122 | /* | 122 | /* |
123 | * Locate the struct se_lun pointer and attach it to struct se_cmd | 123 | * Locate the struct se_lun pointer and attach it to struct se_cmd |
124 | */ | 124 | */ |
125 | if (transport_get_lun_for_cmd(se_cmd, NULL, tl_cmd->sc->device->lun) < 0) { | 125 | if (transport_get_lun_for_cmd(se_cmd, tl_cmd->sc->device->lun) < 0) { |
126 | kmem_cache_free(tcm_loop_cmd_cache, tl_cmd); | 126 | kmem_cache_free(tcm_loop_cmd_cache, tl_cmd); |
127 | set_host_byte(sc, DID_NO_CONNECT); | 127 | set_host_byte(sc, DID_NO_CONNECT); |
128 | return NULL; | 128 | return NULL; |