summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/sg.c
diff options
context:
space:
mode:
authorAlexey Khoroshilov <khoroshilov@ispras.ru>2017-04-24 01:01:00 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-04-25 00:16:49 +0200
commit4bd13a077172a1a509115993ebe2082f327f1609 (patch)
treeeb34c0f6e13c32cc24e9774f1bcf67521ff99703 /drivers/scsi/sg.c
parentscsi: fusion: fix spelling mistake: "Persistancy" -> "Persistency" (diff)
downloadlinux-4bd13a077172a1a509115993ebe2082f327f1609.tar.xz
linux-4bd13a077172a1a509115993ebe2082f327f1609.zip
scsi: mvumi: remove code handling zero scsi_sg_count(scmd) case
As Christoph Hellwig noted, SCSI commands that transfer data always have a SG entry. The patch removes dead code in mvumi_make_sgl(), mvumi_complete_cmd() and mvumi_timed_out() that handle zero scsi_sg_count(scmd) case. Also the patch adds pci_unmap_sg() on failure path in mvumi_make_sgl(). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/sg.c')
0 files changed, 0 insertions, 0 deletions