From 31afc39c0c93edec5a117371f1bd2a264cceafac Mon Sep 17 00:00:00 2001 From: Christoph Hellwig Date: Tue, 13 Sep 2011 23:08:11 +0200 Subject: [PATCH] target: don't opencode transport_release_cmd in transport_release_fe_cmd Signed-off-by: Christoph Hellwig Signed-off-by: Nicholas Bellinger --- drivers/target/target_core_transport.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index f0f21bb28400..0c1d004548b1 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -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 -- 2.20.1