diff options
author | Joern Engel <joern@logfs.org> | 2013-07-03 11:22:17 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-07-07 21:36:53 -0400 |
commit | b79fafac70fc9bbe640b8193ed772eb850efdfe6 (patch) | |
tree | b99c39999610a4371563ec179d3b2e10a04c2df0 /drivers/target/loopback | |
parent | 11fee8a751670cf6d60b1912e2e9cb1c7e392842 (diff) |
target: make queue_tm_rsp() return void
The return value wasn't checked by any of the callers. Assuming this is
correct behaviour, we can simplify some code by not bothering to
generate it.
nab: Add srpt_queue_data_in() + srpt_queue_tm_rsp() nops around
srpt_queue_response() void return
Signed-off-by: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/loopback')
-rw-r--r-- | drivers/target/loopback/tcm_loop.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/target/loopback/tcm_loop.c b/drivers/target/loopback/tcm_loop.c index 7c908141cc8a..568ad25f25d3 100644 --- a/drivers/target/loopback/tcm_loop.c +++ b/drivers/target/loopback/tcm_loop.c | |||
@@ -786,7 +786,7 @@ static int tcm_loop_queue_status(struct se_cmd *se_cmd) | |||
786 | return 0; | 786 | return 0; |
787 | } | 787 | } |
788 | 788 | ||
789 | static int tcm_loop_queue_tm_rsp(struct se_cmd *se_cmd) | 789 | static void tcm_loop_queue_tm_rsp(struct se_cmd *se_cmd) |
790 | { | 790 | { |
791 | struct se_tmr_req *se_tmr = se_cmd->se_tmr_req; | 791 | struct se_tmr_req *se_tmr = se_cmd->se_tmr_req; |
792 | struct tcm_loop_tmr *tl_tmr = se_tmr->fabric_tmr_ptr; | 792 | struct tcm_loop_tmr *tl_tmr = se_tmr->fabric_tmr_ptr; |
@@ -796,7 +796,6 @@ static int tcm_loop_queue_tm_rsp(struct se_cmd *se_cmd) | |||
796 | */ | 796 | */ |
797 | atomic_set(&tl_tmr->tmr_complete, 1); | 797 | atomic_set(&tl_tmr->tmr_complete, 1); |
798 | wake_up(&tl_tmr->tl_tmr_wait); | 798 | wake_up(&tl_tmr->tl_tmr_wait); |
799 | return 0; | ||
800 | } | 799 | } |
801 | 800 | ||
802 | static char *tcm_loop_dump_proto_id(struct tcm_loop_hba *tl_hba) | 801 | static char *tcm_loop_dump_proto_id(struct tcm_loop_hba *tl_hba) |