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/iscsi | |
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/iscsi')
-rw-r--r-- | drivers/target/iscsi/iscsi_target_configfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/target/iscsi/iscsi_target_configfs.c b/drivers/target/iscsi/iscsi_target_configfs.c index 684d73fcbedf..7d4e19f39fe6 100644 --- a/drivers/target/iscsi/iscsi_target_configfs.c +++ b/drivers/target/iscsi/iscsi_target_configfs.c | |||
@@ -1790,13 +1790,12 @@ static int lio_queue_status(struct se_cmd *se_cmd) | |||
1790 | return 0; | 1790 | return 0; |
1791 | } | 1791 | } |
1792 | 1792 | ||
1793 | static int lio_queue_tm_rsp(struct se_cmd *se_cmd) | 1793 | static void lio_queue_tm_rsp(struct se_cmd *se_cmd) |
1794 | { | 1794 | { |
1795 | struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); | 1795 | struct iscsi_cmd *cmd = container_of(se_cmd, struct iscsi_cmd, se_cmd); |
1796 | 1796 | ||
1797 | cmd->i_state = ISTATE_SEND_TASKMGTRSP; | 1797 | cmd->i_state = ISTATE_SEND_TASKMGTRSP; |
1798 | iscsit_add_cmd_to_response_queue(cmd, cmd->conn, cmd->i_state); | 1798 | iscsit_add_cmd_to_response_queue(cmd, cmd->conn, cmd->i_state); |
1799 | return 0; | ||
1800 | } | 1799 | } |
1801 | 1800 | ||
1802 | static char *lio_tpg_get_endpoint_wwn(struct se_portal_group *se_tpg) | 1801 | static char *lio_tpg_get_endpoint_wwn(struct se_portal_group *se_tpg) |