From: Sagi Grimberg Date: Tue, 1 Jan 2019 07:58:29 +0000 (-0800) Subject: nvme-tcp: remove dead code X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e9c2edc098921173920df370c69b5c38fe52df56;p=linux.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 de174912445e5..7210b2d6df13b 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); }