From: Sagi Grimberg Date: Tue, 1 Jan 2019 07:58:29 +0000 (-0800) Subject: nvme-tcp: remove dead code X-Git-Tag: for-linus-20190112~5^2~6 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=e9c2edc098921173920df370c69b5c38fe52df56;p=linux-block.git nvme-tcp: remove dead code We should never touch the opal device from the transport driver. Signed-off-by: Sagi Grimberg Signed-off-by: Christoph Hellwig --- diff --git a/drivers/nvme/host/tcp.c b/drivers/nvme/host/tcp.c index de174912445e..7210b2d6df13 100644 --- a/drivers/nvme/host/tcp.c +++ b/drivers/nvme/host/tcp.c @@ -1620,7 +1620,6 @@ static void nvme_tcp_destroy_admin_queue(struct nvme_ctrl *ctrl, bool remove) { nvme_tcp_stop_queue(ctrl, 0); if (remove) { - free_opal_dev(ctrl->opal_dev); blk_cleanup_queue(ctrl->admin_q); blk_mq_free_tag_set(ctrl->admin_tagset); }