aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2022-10-18 15:57:20 +0200
committerJens Axboe <[email protected]>2022-10-25 08:25:35 -0600
commit941f7298c70c7668416e7845fa76eb72c07d966b (patch)
treec42161c7e0c750d179fb7aae8b608a8c7c173015
parent7dcebef90d35de13a326f765dd787538880566f9 (diff)
nvme-apple: remove an extra queue reference
Now that blk_mq_destroy_queue does not release the queue reference, there is no need for a second admin queue reference to be held by the apple_nvme structure. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Reviewed-by: Sven Peter <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Reviewed-by: Keith Busch <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r--drivers/nvme/host/apple.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/nvme/host/apple.c b/drivers/nvme/host/apple.c
index 7b8068aab7fc..a89b06a7099f 100644
--- a/drivers/nvme/host/apple.c
+++ b/drivers/nvme/host/apple.c
@@ -1507,15 +1507,6 @@ static int apple_nvme_probe(struct platform_device *pdev)
goto put_dev;
}
- if (!blk_get_queue(anv->ctrl.admin_q)) {
- nvme_start_admin_queue(&anv->ctrl);
- blk_mq_destroy_queue(anv->ctrl.admin_q);
- blk_put_queue(anv->ctrl.admin_q);
- anv->ctrl.admin_q = NULL;
- ret = -ENODEV;
- goto put_dev;
- }
-
nvme_reset_ctrl(&anv->ctrl);
async_schedule(apple_nvme_async_probe, anv);