nvme-pci: cleaning up nvme_pci_init_request
PATCH 1/1 nvme-pci: cleaning up nvme_pci_init_request
Erase the superfluous line that retrieves the nvme_dev.
Signed-off-by Irvin Cote <[email protected]>
--- drivers/nvme/host/pci.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/nvme/host/pci.c +1 -2
@@ -420,10 +420,9 @@ static int nvme_pci_init_request(struct blk_mq_tag_set *set, struct request *req, unsigned int hctx_idx, unsigned int numa_node) { - struct nvme_dev *dev = to_nvme_dev(set->driver_data); struct nvme_iod *iod = blk_mq_rq_to_pdu(req); -nvme_req (req)->ctrl = &dev->ctrl; +nvme_req (req)->ctrl = set->driver_data;nvme_req (req)->cmd = &iod->cmd;return 0 ; }
Signature · 1 line
2.39.2
Quoted 3 lines · Irvin Cote
Erase the superfluous line that retrieves the
nvme_dev.Signed-off-by Irvin Cote <[email protected]>
Looks good:
Reviewed-by Christoph Hellwig <[email protected]>
Thanks, applied to nvme-6.5.