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/tcm_fc/tfc_cmd.c | |
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/tcm_fc/tfc_cmd.c')
-rw-r--r-- | drivers/target/tcm_fc/tfc_cmd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/target/tcm_fc/tfc_cmd.c b/drivers/target/tcm_fc/tfc_cmd.c index 7b6bb72fa475..0e5a1caed176 100644 --- a/drivers/target/tcm_fc/tfc_cmd.c +++ b/drivers/target/tcm_fc/tfc_cmd.c | |||
@@ -394,14 +394,14 @@ static void ft_send_tm(struct ft_cmd *cmd) | |||
394 | /* | 394 | /* |
395 | * Send status from completed task management request. | 395 | * Send status from completed task management request. |
396 | */ | 396 | */ |
397 | int ft_queue_tm_resp(struct se_cmd *se_cmd) | 397 | void ft_queue_tm_resp(struct se_cmd *se_cmd) |
398 | { | 398 | { |
399 | struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); | 399 | struct ft_cmd *cmd = container_of(se_cmd, struct ft_cmd, se_cmd); |
400 | struct se_tmr_req *tmr = se_cmd->se_tmr_req; | 400 | struct se_tmr_req *tmr = se_cmd->se_tmr_req; |
401 | enum fcp_resp_rsp_codes code; | 401 | enum fcp_resp_rsp_codes code; |
402 | 402 | ||
403 | if (cmd->aborted) | 403 | if (cmd->aborted) |
404 | return 0; | 404 | return; |
405 | switch (tmr->response) { | 405 | switch (tmr->response) { |
406 | case TMR_FUNCTION_COMPLETE: | 406 | case TMR_FUNCTION_COMPLETE: |
407 | code = FCP_TMF_CMPL; | 407 | code = FCP_TMF_CMPL; |
@@ -421,7 +421,6 @@ int ft_queue_tm_resp(struct se_cmd *se_cmd) | |||
421 | pr_debug("tmr fn %d resp %d fcp code %d\n", | 421 | pr_debug("tmr fn %d resp %d fcp code %d\n", |
422 | tmr->function, tmr->response, code); | 422 | tmr->function, tmr->response, code); |
423 | ft_send_resp_code(cmd, code); | 423 | ft_send_resp_code(cmd, code); |
424 | return 0; | ||
425 | } | 424 | } |
426 | 425 | ||
427 | static void ft_send_work(struct work_struct *work); | 426 | static void ft_send_work(struct work_struct *work); |