target: don't opencode transport_release_cmd in transport_release_fe_cmd
authorChristoph Hellwig <hch@lst.de>
Tue, 13 Sep 2011 21:08:11 +0000 (23:08 +0200)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 24 Oct 2011 03:20:29 +0000 (03:20 +0000)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_transport.c

index f0f21bb..0c1d004 100644 (file)
@@ -3794,8 +3794,7 @@ static void transport_release_fe_cmd(struct se_cmd *cmd)
        transport_release_tasks(cmd);
 free_pages:
        transport_free_pages(cmd);
-       transport_free_se_cmd(cmd);
-       cmd->se_tfo->release_cmd(cmd);
+       transport_release_cmd(cmd);
 }
 
 static int