Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d28d96dc authored by Jörn Engel's avatar Jörn Engel Committed by Nicholas Bellinger
Browse files

target: cleanup transport_execute_tasks()



The function is effectively void and doesn't need any goto logic.

Signed-off-by: default avatarJoern Engel <joern@logfs.org>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 11e764bd
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -1970,7 +1970,7 @@ static inline int transport_execute_task_attr(struct se_cmd *cmd)
 * Called from fabric module context in transport_generic_new_cmd() and
 * transport_generic_process_write()
 */
static int transport_execute_tasks(struct se_cmd *cmd)
static void transport_execute_tasks(struct se_cmd *cmd)
{
	int add_tasks;
	struct se_device *se_dev = cmd->se_dev;
@@ -1984,16 +1984,12 @@ static int transport_execute_tasks(struct se_cmd *cmd)
		 * attribute for the tasks of the received struct se_cmd CDB
		 */
		add_tasks = transport_execute_task_attr(cmd);
		if (!add_tasks)
			goto execute_tasks;

		if (add_tasks) {
			__transport_execute_tasks(se_dev, cmd);
		return 0;
			return;
		}
	}

execute_tasks:
	__transport_execute_tasks(se_dev, NULL);
	return 0;
}

static int __transport_execute_tasks(struct se_device *dev, struct se_cmd *new_cmd)