Skip to content

Commit 4a4d9bc

Browse files
i-cotekeithbusch
authored andcommitted
nvme-pci: cleaning up nvme_pci_init_request
Erase the superfluous line that retrieves the nvme_dev. Signed-off-by: Irvin Cote <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Keith Busch <[email protected]>
1 parent f3f2837 commit 4a4d9bc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/nvme/host/pci.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,9 @@ static int nvme_pci_init_request(struct blk_mq_tag_set *set,
420420
struct request *req, unsigned int hctx_idx,
421421
unsigned int numa_node)
422422
{
423-
struct nvme_dev *dev = to_nvme_dev(set->driver_data);
424423
struct nvme_iod *iod = blk_mq_rq_to_pdu(req);
425424

426-
nvme_req(req)->ctrl = &dev->ctrl;
425+
nvme_req(req)->ctrl = set->driver_data;
427426
nvme_req(req)->cmd = &iod->cmd;
428427
return 0;
429428
}

0 commit comments

Comments
 (0)