nvmet-tcp: remove nvmet_tcp_finish_cmd
authorzhenwei pi <pizhenwei@bytedance.com>
Thu, 22 Sep 2022 07:06:16 +0000 (15:06 +0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 27 Sep 2022 07:22:08 +0000 (09:22 +0200)
commit0700542a823ba3d3aa9c699a255aecc23dbbcaff
treedb077ca40b3d0ba3304573120341994ae3c6897a
parentb6a545ffa2c192b1e6da4a7924edac5ba9f4ea2b
nvmet-tcp: remove nvmet_tcp_finish_cmd

There is only a single call-site of nvmet_tcp_finish_cmd(), this
becomes redundant. Remove nvmet_tcp_finish_cmd() and use the original
function body instead.

Suggested-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: zhenwei pi <pizhenwei@bytedance.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/tcp.c