]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
nvme-tcp: remove dead code
authorSagi Grimberg <sagi@grimberg.me>
Tue, 1 Jan 2019 07:58:29 +0000 (23:58 -0800)
committerChristoph Hellwig <hch@lst.de>
Wed, 9 Jan 2019 18:47:06 +0000 (13:47 -0500)
We should never touch the opal device from the transport driver.

Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c

index de174912445e5b0c60fc3e3d5b36bb8aef05af07..7210b2d6df13b5bb154a6c94ca858db849182d18 100644 (file)
@@ -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);
        }