]> git.karo-electronics.de Git - karo-tx-linux.git/commit
scsi: mvumi: remove code handling zero scsi_sg_count(scmd) case
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sun, 23 Apr 2017 23:01:00 +0000 (02:01 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 24 Apr 2017 22:16:49 +0000 (18:16 -0400)
commit4bd13a077172a1a509115993ebe2082f327f1609
treeeb34c0f6e13c32cc24e9774f1bcf67521ff99703
parent6b8accea1b03da5f03e6dcd589f7024c4f4ee445
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>
drivers/scsi/mvumi.c