Skip to content

Commit b6c0c23

Browse files
keithbuschChristoph Hellwig
authored andcommitted
nvme-pci: remove iod use_sgls
It's not used anywhere anymore, so remove it. Signed-off-by: Keith Busch <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
1 parent 8f0edf4 commit b6c0c23

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/nvme/host/pci.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@ union nvme_descriptor {
230230
struct nvme_iod {
231231
struct nvme_request req;
232232
struct nvme_command cmd;
233-
bool use_sgl;
234233
bool aborted;
235234
s8 nr_allocations; /* PRP list pool allocations. 0 means small
236235
pool in use */
@@ -808,8 +807,7 @@ static blk_status_t nvme_map_data(struct nvme_dev *dev, struct request *req,
808807
goto out_free_sg;
809808
}
810809

811-
iod->use_sgl = nvme_pci_use_sgls(dev, req, iod->sgt.nents);
812-
if (iod->use_sgl)
810+
if (nvme_pci_use_sgls(dev, req, iod->sgt.nents))
813811
ret = nvme_pci_setup_sgls(dev, req, &cmnd->rw);
814812
else
815813
ret = nvme_pci_setup_prps(dev, req, &cmnd->rw);

0 commit comments

Comments
 (0)